feat: migrate icons to ui-next (#4606)

This commit is contained in:
Alireza authored and GitHub committed 2024-12-17 13:20:19 -05:00
1 parent e93a9c70c5
commit 4e2ae32874
967 files changed
+9222 -10948

No files matched your search

+6 -8
View File
@@ -8,7 +8,8 @@ import filesToStudies from './filesToStudies';
import { extensionManager } from '../../App.tsx';
import { Icon, Button, LoadingIndicatorProgress } from '@ohif/ui';
import { Button, Icon, LoadingIndicatorProgress } from '@ohif/ui';
import { Icons } from '@ohif/ui-next';
const getLoadButton = (onDrop, text, isDir) => {
return (
@@ -22,7 +23,7 @@ const getLoadButton = (onDrop, text, isDir) => {
rounded="full"
variant="contained" // outlined
disabled={false}
endIcon={<Icon name="launch-arrow" />} // launch-arrow | launch-info
endIcon={<Icons.LaunchArrow />}
className={classnames('font-medium', 'ml-2')}
onClick={() => {}}
>
@@ -123,13 +124,10 @@ function Local({ modePath }: LocalProps) {
{...getRootProps()}
style={{ width: '100%', height: '100%' }}
>
<div className="flex h-screen w-screen items-center justify-center ">
<div className="flex h-screen w-screen items-center justify-center">
<div className="bg-secondary-dark mx-auto space-y-2 rounded-lg py-8 px-8 drop-shadow-md">
<div className="flex items-center justify-center">
<Icon
name="logo-dark-background"
className="h-28"
/>
<Icons.OHIFLogoColorDarkBackground className="h-28" />
</div>
<div className="space-y-2 pt-4 text-center">
{dropInitiated ? (
@@ -149,7 +147,7 @@ function Local({ modePath }: LocalProps) {
</div>
)}
</div>
<div className="flex justify-around pt-4 ">
<div className="flex justify-around pt-4">
{getLoadButton(onDrop, 'Load files', false)}
{getLoadButton(onDrop, 'Load folders', true)}
</div>