feat: migrate icons to ui-next (#4606)
This commit is contained in:
1 parent
e93a9c70c5
commit
4e2ae32874
967 files changed
+9222
-10948
No files matched your search
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classnames from 'classnames';
|
||||
|
||||
import Icon from '../Icon';
|
||||
import { Icons } from '@ohif/ui-next';
|
||||
|
||||
const MeasurementItem = ({
|
||||
uid,
|
||||
@@ -56,8 +56,7 @@ const MeasurementItem = ({
|
||||
onMouseLeave={() => setIsIndexHovering(false)}
|
||||
>
|
||||
{isIndexHovering ? (
|
||||
<Icon
|
||||
name="close"
|
||||
<Icons.Close
|
||||
className={classnames(
|
||||
'mx-auto mt-1 w-[10px] text-center transition duration-500 hover:opacity-80',
|
||||
{
|
||||
@@ -80,13 +79,12 @@ const MeasurementItem = ({
|
||||
dangerouslySetInnerHTML={{ __html: line }}
|
||||
></span>
|
||||
))}
|
||||
<Icon
|
||||
<Icons.Pencil
|
||||
className={classnames(
|
||||
'absolute w-3 cursor-pointer text-white transition duration-300 hover:opacity-80',
|
||||
{ 'invisible mr-2 opacity-0': !isActive && !isHovering },
|
||||
{ 'opacity-1 visible': !isActive && isHovering }
|
||||
)}
|
||||
name="pencil"
|
||||
style={{
|
||||
top: 7,
|
||||
right: 14,
|
||||
|
||||
Reference in new issue
Block a user