Browse Source

feat(report): add icons to diagnostic report trigger buttons

sw 3 weeks ago
parent
commit
b678c3cae2

+ 1 - 0
src/assets/Icons/base/module-patient/theme-default/1x/report.svg

@@ -0,0 +1 @@
+<svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.cls-1{fill:none;}</style></defs><title>report--alt</title><rect x="10" y="18" width="8" height="2"/><rect x="10" y="13" width="12" height="2"/><rect x="10" y="23" width="5" height="2"/><path d="M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"/><rect id="_Transparent_Rectangle_" data-name="&lt;Transparent Rectangle&gt;" class="cls-1" width="32" height="32"/></svg>

+ 2 - 2
src/pages/patient/components/ActionPanel.tsx

@@ -22,7 +22,7 @@ const ActionButton: React.FC<ActionButtonProps> = ({
   onClick,
 }) => (
   <Tooltip title={tooltip}>
-    <Button icon={icon} onClick={onClick} style={{ width: '1.5rem' }} />
+    <Button icon={icon} onClick={onClick} style={{ width: '2.5rem' }} />
   </Tooltip>
 );
 
@@ -307,7 +307,7 @@ const ActionPanel: React.FC = () => {
         icon={
           <Icon
             module="module-patient"
-            name="Report"
+            name="report"
             userId="base"
             theme="default"
             size="2x"