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

@@ -1,6 +1,7 @@
import React, { useState, useCallback } from 'react';
import PropTypes from 'prop-types';
import { Icon, Typography } from '../../';
import { Typography } from '../../';
import { Icons } from '@ohif/ui-next';
/**
* REACT CheckBox component
@@ -31,12 +32,15 @@ const CheckBox: React.FC<{
className={`flex cursor-pointer items-center space-x-1 ${className ? className : ''}`}
onClick={handleClick}
>
{isChecked ? <Icon name="checkbox-checked" /> : <Icon name="checkbox-unchecked" />}
{isChecked ? (
<Icons.ByName name="checkbox-checked" />
) : (
<Icons.ByName name="checkbox-unchecked" />
)}
<Typography
variant={labelVariant ?? 'subtitle'}
component="p"
className={labelClassName ?? 'text-white '}
className={labelClassName ?? 'text-white'}
>
{label}
</Typography>