Browse Source

feat(output): add icons for buttons in output operation panel

sw 1 month ago
parent
commit
d2359d83ac
1 changed files with 21 additions and 3 deletions
  1. 21 3
      src/pages/patient/components/OutputActionPanel.tsx

+ 21 - 3
src/pages/patient/components/OutputActionPanel.tsx

@@ -1,6 +1,6 @@
 import { Tooltip, Button, Space } from 'antd';
-import { ReloadOutlined, DeleteOutlined } from '@ant-design/icons';
 import { FormattedMessage } from 'react-intl';
+import Icon from '@/components/Icon';
 
 const OutputActionPanel: React.FC = () => (
   <Space>
@@ -14,7 +14,16 @@ const OutputActionPanel: React.FC = () => (
     >
       <Button
         type="default"
-        icon={<ReloadOutlined />}
+        icon={
+          <Icon
+            module="module-patient"
+            name="Export"
+            userId="base"
+            theme="default"
+            size="2x"
+            state="normal"
+          />
+        }
         aria-label="重试"
         style={{ width: '1.5rem', height: '1.5rem' }}
       />
@@ -29,7 +38,16 @@ const OutputActionPanel: React.FC = () => (
     >
       <Button
         type="default"
-        icon={<DeleteOutlined />}
+        icon={
+          <Icon
+            module="module-patient"
+            name="Delete"
+            userId="base"
+            theme="default"
+            size="2x"
+            state="normal"
+          />
+        }
         aria-label="删除"
         style={{ width: '1.5rem', height: '1.5rem' }}
       />