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

@@ -2,9 +2,10 @@ import React from 'react';
import PropTypes from 'prop-types';
import { withTranslation } from 'react-i18next';
import { IconButton, Icon, NavBar } from '../../../components';
import { IconButton, NavBar } from '../../../components';
import OHIFLogo from './OHIFLogo';
import { Icons } from '@ohif/ui-next';
function Header({ appLogo = OHIFLogo(), children, t }) {
const showSettingsDropdown = () => {
@@ -29,8 +30,8 @@ function Header({ appLogo = OHIFLogo(), children, t }) {
onClick={showSettingsDropdown}
>
<React.Fragment>
<Icon name="settings" />
<Icon name="chevron-down" />
<Icons.Settings />
<Icons.ChevronOpen />
</React.Fragment>
</IconButton>
</div>
@@ -1,5 +1,6 @@
import React from 'react';
import { NavBar, Svg, Icon, IconButton } from '../../../components';
import { NavBar, IconButton } from '../../../components';
import { Icons } from '@ohif/ui-next';
const Header = () => {
return (
@@ -7,8 +8,7 @@ const Header = () => {
<div className="flex flex-1 justify-between">
<div className="flex items-center">
<div className="mr-3 inline-flex items-center">
<Icon
name="chevron-left"
<Icons.ArrowLeft
className="text-primary-active w-8 cursor-pointer"
onClick={() => alert('Navigate to previous page')}
/>
@@ -16,7 +16,7 @@ const Header = () => {
href="#"
className="ml-4"
>
<Svg name="logo-ohif" />
<Icons.OHIFLogo />
</a>
</div>
</div>
@@ -30,7 +30,7 @@ const Header = () => {
onClick={() => {}}
>
<React.Fragment>
<Icon name="settings" /> <Icon name="chevron-down" />
<Icons.Settings /> <Icons.ChevronOpen />
</React.Fragment>
</IconButton>
</div>