Forráskód Böngészése

feat(recycle-bin): add icons for buttons in recycle bin operation panel

sw 1 hónapja
szülő
commit
f09119d4d6

BIN
src/assets/Icons/base/module-patient/theme-default/1x/EmptyRecycleBin_disable.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/EmptyRecycleBin_down.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/EmptyRecycleBin_normal.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/EmptyRecycleBin_over.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/Restore_disable.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/Restore_down.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/Restore_normal.png


BIN
src/assets/Icons/base/module-patient/theme-default/1x/Restore_over.png


+ 31 - 9
src/pages/patient/components/BinActionPanel.tsx

@@ -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' }}
               />