From 21c2a0a57c51a63b8d5250863bb2627f133c64e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Sworze=C5=84?= Date: Tue, 12 Mar 2024 13:54:33 +0100 Subject: [PATCH] [#364] add download icon into download json button --- govtool/frontend/public/icons/Download.svg | 5 +++++ .../CreateGovernanceActionSteps/StorageInformation.tsx | 3 ++- govtool/frontend/src/consts/icons.ts | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 govtool/frontend/public/icons/Download.svg diff --git a/govtool/frontend/public/icons/Download.svg b/govtool/frontend/public/icons/Download.svg new file mode 100644 index 000000000..c39977182 --- /dev/null +++ b/govtool/frontend/public/icons/Download.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx b/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx index 41bd01112..4454b897d 100644 --- a/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx +++ b/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx @@ -3,6 +3,7 @@ import { Box } from "@mui/material"; import OpenInNewIcon from "@mui/icons-material/OpenInNew"; import { Button, Spacer, Typography } from "@atoms"; +import { ICONS } from "@consts"; import { useCreateGovernanceActionForm, useTranslation } from "@hooks"; import { Step } from "@molecules"; import { BgCard, ControlledField } from "@organisms"; @@ -64,11 +65,11 @@ export const StorageInformation = ({ setStep }: StorageInformationProps) => { } sx={{ width: "fit-content" }} > {`${fileName}.jsonld`} diff --git a/govtool/frontend/src/consts/icons.ts b/govtool/frontend/src/consts/icons.ts index 1cb22944b..2a5fc394d 100644 --- a/govtool/frontend/src/consts/icons.ts +++ b/govtool/frontend/src/consts/icons.ts @@ -12,6 +12,7 @@ export const ICONS = { copyWhiteIcon: "/icons/CopyWhite.svg", dashboardActiveIcon: "/icons/DashboardActive.svg", dashboardIcon: "/icons/Dashboard.svg", + download: "/icons/Download.svg", drawerIcon: "/icons/DrawerIcon.svg", externalLinkIcon: "/icons/ExternalLink.svg", faqsActiveIcon: "/icons/FaqsActive.svg",