From 6200cf54d39bd608d86978677815d97d26cfb2ef Mon Sep 17 00:00:00 2001 From: Nozomi Ichihara <31800566+nozomione@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:48:31 -0400 Subject: [PATCH] add the svg icon without the black fill and adjust the related components --- client/src/components/Icon.js | 2 ++ client/src/components/WarningCard.js | 3 ++- client/src/components/WarningText.js | 7 ++++++- client/src/images/warning-red.svg | 3 +++ 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 client/src/images/warning-red.svg diff --git a/client/src/components/Icon.js b/client/src/components/Icon.js index 75cdc3b5..9f314fbb 100644 --- a/client/src/components/Icon.js +++ b/client/src/components/Icon.js @@ -21,6 +21,7 @@ import Search from '../images/search.svg' import Trashcan from '../images/trash-can.svg' import View from '../images/view.svg' import Warning from '../images/warning.svg' +import WarningNoFill from '../images/warning-red.svg' import Twitter from '../images/twitter.svg' import Facebook from '../images/facebook.svg' import Instagram from '../images/instagram.svg' @@ -47,6 +48,7 @@ export const SVGs = { Trashcan, View, Warning, + WarningNoFill, Twitter, Instagram, Facebook, diff --git a/client/src/components/WarningCard.js b/client/src/components/WarningCard.js index 040a565a..de140c78 100644 --- a/client/src/components/WarningCard.js +++ b/client/src/components/WarningCard.js @@ -8,12 +8,13 @@ export const WarningCard = ({ label, children }) => { - + {text} {lineBreak &&
} diff --git a/client/src/images/warning-red.svg b/client/src/images/warning-red.svg new file mode 100644 index 00000000..7847b052 --- /dev/null +++ b/client/src/images/warning-red.svg @@ -0,0 +1,3 @@ + + +