|
@@ -1,11 +1,7 @@
|
|
|
import React from 'react';
|
|
|
import { Row, Tooltip, Button, Progress, Space, Typography, Card } from 'antd';
|
|
|
-import {
|
|
|
- DeleteOutlined,
|
|
|
- RollbackOutlined,
|
|
|
- RestOutlined,
|
|
|
-} from '@ant-design/icons';
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
+import Icon from '@/components/Icon';
|
|
|
|
|
|
const { Text } = Typography;
|
|
|
|
|
@@ -82,9 +78,17 @@ const BinActionPanel: React.FC<BinActionPanelProps> = ({
|
|
|
<Button
|
|
|
type="primary"
|
|
|
shape="circle"
|
|
|
- icon={<DeleteOutlined />}
|
|
|
+ icon={
|
|
|
+ <Icon
|
|
|
+ module="module-patient"
|
|
|
+ name="Delete"
|
|
|
+ userId="base"
|
|
|
+ theme="default"
|
|
|
+ size="2x"
|
|
|
+ state="normal"
|
|
|
+ />
|
|
|
+ }
|
|
|
onClick={onDelete}
|
|
|
- danger
|
|
|
style={{ width: '1.5rem' }}
|
|
|
/>
|
|
|
</Tooltip>
|
|
@@ -99,7 +103,16 @@ const BinActionPanel: React.FC<BinActionPanelProps> = ({
|
|
|
<Button
|
|
|
type="default"
|
|
|
shape="circle"
|
|
|
- icon={<RollbackOutlined />}
|
|
|
+ icon={
|
|
|
+ <Icon
|
|
|
+ module="module-patient"
|
|
|
+ name="Restore"
|
|
|
+ userId="base"
|
|
|
+ theme="default"
|
|
|
+ size="2x"
|
|
|
+ state="normal"
|
|
|
+ />
|
|
|
+ }
|
|
|
onClick={onRestore}
|
|
|
style={{ width: '1.5rem' }}
|
|
|
/>
|
|
@@ -112,7 +125,16 @@ const BinActionPanel: React.FC<BinActionPanelProps> = ({
|
|
|
<Button
|
|
|
type="default"
|
|
|
shape="circle"
|
|
|
- icon={<RestOutlined />}
|
|
|
+ icon={
|
|
|
+ <Icon
|
|
|
+ module="module-patient"
|
|
|
+ name="EmptyRecycleBin"
|
|
|
+ userId="base"
|
|
|
+ theme="default"
|
|
|
+ size="2x"
|
|
|
+ state="normal"
|
|
|
+ />
|
|
|
+ }
|
|
|
onClick={onEmpty}
|
|
|
style={{ width: '1.5rem' }}
|
|
|
/>
|