From e60e1ca9f1948e049c767bc6ce9da8a921356c3c Mon Sep 17 00:00:00 2001 From: Alexandra Goff Date: Thu, 12 Sep 2024 14:47:56 -0700 Subject: [PATCH] fix: spread default props instead of Object.assign --- .../src/svg/IconComposer/IconComposer.stories.tsx | 5 +++-- packages/epo-react-lib/src/svg/icons/Account.tsx | 4 +--- packages/epo-react-lib/src/svg/icons/ArrowUpFromBracket.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Backward.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/BackwardStep.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Calendar.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Cancel.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/CaretDown.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/CheckeredFlag.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Checkmark.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/CheckmarkCircle.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Chevron.tsx | 3 +-- .../epo-react-lib/src/svg/icons/ChevronLeftElongated.tsx | 3 +-- .../epo-react-lib/src/svg/icons/ChevronRightElongated.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ChevronThin.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/CircularLoader.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Close.tsx | 4 +--- packages/epo-react-lib/src/svg/icons/CloseCircle.tsx | 4 +--- packages/epo-react-lib/src/svg/icons/Cloud.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Doc.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/DocArrowRight.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/DocInverted.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Email.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Expand.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Eye.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Facebook.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/FloppyDisk.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Forward.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ForwardStep.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Globe.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Google.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Hamburger.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Info.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/InfoCircle.tsx | 4 ++-- packages/epo-react-lib/src/svg/icons/Instagram.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Lightbulb.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/LinkedIn.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/LockClosed.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/LockOpen.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/LogOut.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Mail.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Minus.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Page.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Pause.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Pdf.tsx | 4 +--- packages/epo-react-lib/src/svg/icons/Phone.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Pin.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Play.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Plus.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/QuestionCircle.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/RotateLeft.tsx | 3 +-- .../epo-react-lib/src/svg/icons/RotateLeftWithCenter.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Search.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ShareCopyUrl.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ShareEmail.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ShareFacebook.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ShareToggle.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/ShareTwitter.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Team.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Temp.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Thumbtack.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Time.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Timer.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Twitter.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/User.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/UserInverted.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Video.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/Word.tsx | 4 +--- packages/epo-react-lib/src/svg/icons/YouTube.tsx | 3 +-- packages/epo-react-lib/src/svg/icons/defaultProps.ts | 1 - 70 files changed, 72 insertions(+), 144 deletions(-) diff --git a/packages/epo-react-lib/src/svg/IconComposer/IconComposer.stories.tsx b/packages/epo-react-lib/src/svg/IconComposer/IconComposer.stories.tsx index 43f2007a..bcf48a55 100644 --- a/packages/epo-react-lib/src/svg/IconComposer/IconComposer.stories.tsx +++ b/packages/epo-react-lib/src/svg/IconComposer/IconComposer.stories.tsx @@ -50,14 +50,15 @@ export default meta; const IconGrid = styled.div` display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--grid-size, 36px), 1fr)); - gap: 0.5rem; + grid-auto-rows: minmax(var(--grid-size, 36px), 1fr); + gap: 0.5em; width: 100%; `; const Template: StoryFn = (args) => { const { size = 36 } = args; return ( - + {Object.keys(Icons).map((key) => ( ))} diff --git a/packages/epo-react-lib/src/svg/icons/Account.tsx b/packages/epo-react-lib/src/svg/icons/Account.tsx index 74b684c5..32a8449e 100644 --- a/packages/epo-react-lib/src/svg/icons/Account.tsx +++ b/packages/epo-react-lib/src/svg/icons/Account.tsx @@ -15,10 +15,8 @@ const Account: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); - return ( - + = ({ stroke, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/BackwardStep.tsx b/packages/epo-react-lib/src/svg/icons/BackwardStep.tsx index 1ca86aad..771d430b 100644 --- a/packages/epo-react-lib/src/svg/icons/BackwardStep.tsx +++ b/packages/epo-react-lib/src/svg/icons/BackwardStep.tsx @@ -15,9 +15,8 @@ const BackwardStep: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Cancel.tsx b/packages/epo-react-lib/src/svg/icons/Cancel.tsx index e3abe9c8..93c241ff 100644 --- a/packages/epo-react-lib/src/svg/icons/Cancel.tsx +++ b/packages/epo-react-lib/src/svg/icons/Cancel.tsx @@ -15,9 +15,8 @@ const Cancel: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/CheckeredFlag.tsx b/packages/epo-react-lib/src/svg/icons/CheckeredFlag.tsx index f92de0c8..48d3a39c 100644 --- a/packages/epo-react-lib/src/svg/icons/CheckeredFlag.tsx +++ b/packages/epo-react-lib/src/svg/icons/CheckeredFlag.tsx @@ -15,9 +15,8 @@ const CheckeredFlag: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/ChevronLeftElongated.tsx b/packages/epo-react-lib/src/svg/icons/ChevronLeftElongated.tsx index 2489df28..451972a0 100644 --- a/packages/epo-react-lib/src/svg/icons/ChevronLeftElongated.tsx +++ b/packages/epo-react-lib/src/svg/icons/ChevronLeftElongated.tsx @@ -24,9 +24,8 @@ const ChevronLeftElongated: FunctionComponent = ({ stroke, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ stroke, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/CircularLoader.tsx b/packages/epo-react-lib/src/svg/icons/CircularLoader.tsx index 9084832f..4cf9fd2a 100644 --- a/packages/epo-react-lib/src/svg/icons/CircularLoader.tsx +++ b/packages/epo-react-lib/src/svg/icons/CircularLoader.tsx @@ -15,9 +15,8 @@ const CircularLoader: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/CloseCircle.tsx b/packages/epo-react-lib/src/svg/icons/CloseCircle.tsx index 1fe43f60..9d204898 100644 --- a/packages/epo-react-lib/src/svg/icons/CloseCircle.tsx +++ b/packages/epo-react-lib/src/svg/icons/CloseCircle.tsx @@ -15,10 +15,8 @@ const CloseCircle: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); - return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Doc.tsx b/packages/epo-react-lib/src/svg/icons/Doc.tsx index a4a5e31e..def0aaf4 100644 --- a/packages/epo-react-lib/src/svg/icons/Doc.tsx +++ b/packages/epo-react-lib/src/svg/icons/Doc.tsx @@ -15,9 +15,8 @@ const Doc: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/DocArrowRight.tsx b/packages/epo-react-lib/src/svg/icons/DocArrowRight.tsx index 7b2bbec3..3b9705b4 100644 --- a/packages/epo-react-lib/src/svg/icons/DocArrowRight.tsx +++ b/packages/epo-react-lib/src/svg/icons/DocArrowRight.tsx @@ -15,9 +15,8 @@ const DocArrowRight: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/DocInverted.tsx b/packages/epo-react-lib/src/svg/icons/DocInverted.tsx index c7ca5eb9..4aef474d 100644 --- a/packages/epo-react-lib/src/svg/icons/DocInverted.tsx +++ b/packages/epo-react-lib/src/svg/icons/DocInverted.tsx @@ -15,9 +15,8 @@ const DocInverted: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Expand.tsx b/packages/epo-react-lib/src/svg/icons/Expand.tsx index 9267f3db..ffbcba05 100644 --- a/packages/epo-react-lib/src/svg/icons/Expand.tsx +++ b/packages/epo-react-lib/src/svg/icons/Expand.tsx @@ -15,9 +15,8 @@ const Expand: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/FloppyDisk.tsx b/packages/epo-react-lib/src/svg/icons/FloppyDisk.tsx index f4ebd817..4ff07bdf 100644 --- a/packages/epo-react-lib/src/svg/icons/FloppyDisk.tsx +++ b/packages/epo-react-lib/src/svg/icons/FloppyDisk.tsx @@ -15,9 +15,8 @@ const FloppyDisk: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Hamburger.tsx b/packages/epo-react-lib/src/svg/icons/Hamburger.tsx index 542566a0..05c88a01 100644 --- a/packages/epo-react-lib/src/svg/icons/Hamburger.tsx +++ b/packages/epo-react-lib/src/svg/icons/Hamburger.tsx @@ -15,9 +15,8 @@ const Hamburger: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Info.tsx b/packages/epo-react-lib/src/svg/icons/Info.tsx index cea56770..6035dfd4 100644 --- a/packages/epo-react-lib/src/svg/icons/Info.tsx +++ b/packages/epo-react-lib/src/svg/icons/Info.tsx @@ -15,9 +15,8 @@ const Info: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/InfoCircle.tsx b/packages/epo-react-lib/src/svg/icons/InfoCircle.tsx index 3d7a7156..092c6a7e 100644 --- a/packages/epo-react-lib/src/svg/icons/InfoCircle.tsx +++ b/packages/epo-react-lib/src/svg/icons/InfoCircle.tsx @@ -13,11 +13,11 @@ const InfoCircle: FunctionComponent = ({ height: size, fill, className, + stroke: "currentColor", }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Lightbulb.tsx b/packages/epo-react-lib/src/svg/icons/Lightbulb.tsx index 1858b8c7..4df1ceff 100644 --- a/packages/epo-react-lib/src/svg/icons/Lightbulb.tsx +++ b/packages/epo-react-lib/src/svg/icons/Lightbulb.tsx @@ -15,9 +15,8 @@ const Lightbulb: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/LinkedIn.tsx b/packages/epo-react-lib/src/svg/icons/LinkedIn.tsx index c164ccc5..5cb0857d 100644 --- a/packages/epo-react-lib/src/svg/icons/LinkedIn.tsx +++ b/packages/epo-react-lib/src/svg/icons/LinkedIn.tsx @@ -15,9 +15,8 @@ const LinkedIn: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/LockClosed.tsx b/packages/epo-react-lib/src/svg/icons/LockClosed.tsx index 1bb1d102..6eaa624d 100644 --- a/packages/epo-react-lib/src/svg/icons/LockClosed.tsx +++ b/packages/epo-react-lib/src/svg/icons/LockClosed.tsx @@ -15,9 +15,8 @@ const LockClosed: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/LockOpen.tsx b/packages/epo-react-lib/src/svg/icons/LockOpen.tsx index 92929574..936b9cbe 100644 --- a/packages/epo-react-lib/src/svg/icons/LockOpen.tsx +++ b/packages/epo-react-lib/src/svg/icons/LockOpen.tsx @@ -15,9 +15,8 @@ const LockOpen: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/LogOut.tsx b/packages/epo-react-lib/src/svg/icons/LogOut.tsx index 1f25bce3..0058cd3b 100644 --- a/packages/epo-react-lib/src/svg/icons/LogOut.tsx +++ b/packages/epo-react-lib/src/svg/icons/LogOut.tsx @@ -15,9 +15,8 @@ const LogOut: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Minus.tsx b/packages/epo-react-lib/src/svg/icons/Minus.tsx index 600c68bd..27aa9a59 100644 --- a/packages/epo-react-lib/src/svg/icons/Minus.tsx +++ b/packages/epo-react-lib/src/svg/icons/Minus.tsx @@ -17,9 +17,8 @@ const Minus: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Pdf.tsx b/packages/epo-react-lib/src/svg/icons/Pdf.tsx index 525ff053..30b1983f 100644 --- a/packages/epo-react-lib/src/svg/icons/Pdf.tsx +++ b/packages/epo-react-lib/src/svg/icons/Pdf.tsx @@ -15,10 +15,8 @@ const Pdf: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); - return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Phone.tsx b/packages/epo-react-lib/src/svg/icons/Phone.tsx index b025d223..a6446b8d 100644 --- a/packages/epo-react-lib/src/svg/icons/Phone.tsx +++ b/packages/epo-react-lib/src/svg/icons/Phone.tsx @@ -15,9 +15,8 @@ const Phone: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Pin.tsx b/packages/epo-react-lib/src/svg/icons/Pin.tsx index 0de08ff3..b61bfc75 100644 --- a/packages/epo-react-lib/src/svg/icons/Pin.tsx +++ b/packages/epo-react-lib/src/svg/icons/Pin.tsx @@ -15,9 +15,8 @@ const Pin: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Play.tsx b/packages/epo-react-lib/src/svg/icons/Play.tsx index a52e3ce9..d56d4e77 100644 --- a/packages/epo-react-lib/src/svg/icons/Play.tsx +++ b/packages/epo-react-lib/src/svg/icons/Play.tsx @@ -15,9 +15,8 @@ const Play: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Plus.tsx b/packages/epo-react-lib/src/svg/icons/Plus.tsx index 607201c7..3b694e66 100644 --- a/packages/epo-react-lib/src/svg/icons/Plus.tsx +++ b/packages/epo-react-lib/src/svg/icons/Plus.tsx @@ -17,9 +17,8 @@ const Plus: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/QuestionCircle.tsx b/packages/epo-react-lib/src/svg/icons/QuestionCircle.tsx index 3f525726..3cbe8605 100644 --- a/packages/epo-react-lib/src/svg/icons/QuestionCircle.tsx +++ b/packages/epo-react-lib/src/svg/icons/QuestionCircle.tsx @@ -17,9 +17,8 @@ const QuestionCircle: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/ShareCopyUrl.tsx b/packages/epo-react-lib/src/svg/icons/ShareCopyUrl.tsx index 712b8cc0..29d8cfbc 100644 --- a/packages/epo-react-lib/src/svg/icons/ShareCopyUrl.tsx +++ b/packages/epo-react-lib/src/svg/icons/ShareCopyUrl.tsx @@ -15,9 +15,8 @@ const ShareCopyUrl: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/ShareTwitter.tsx b/packages/epo-react-lib/src/svg/icons/ShareTwitter.tsx index c1650a9d..e447d8d8 100644 --- a/packages/epo-react-lib/src/svg/icons/ShareTwitter.tsx +++ b/packages/epo-react-lib/src/svg/icons/ShareTwitter.tsx @@ -15,9 +15,8 @@ const ShareTwitter: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Temp.tsx b/packages/epo-react-lib/src/svg/icons/Temp.tsx index 2ac12599..431c2fae 100644 --- a/packages/epo-react-lib/src/svg/icons/Temp.tsx +++ b/packages/epo-react-lib/src/svg/icons/Temp.tsx @@ -15,9 +15,8 @@ const Temp: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Thumbtack.tsx b/packages/epo-react-lib/src/svg/icons/Thumbtack.tsx index d2800bfa..8e9c1b3a 100644 --- a/packages/epo-react-lib/src/svg/icons/Thumbtack.tsx +++ b/packages/epo-react-lib/src/svg/icons/Thumbtack.tsx @@ -15,9 +15,8 @@ const Thumbtack: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Timer.tsx b/packages/epo-react-lib/src/svg/icons/Timer.tsx index ecebb5bc..cdc291a1 100644 --- a/packages/epo-react-lib/src/svg/icons/Timer.tsx +++ b/packages/epo-react-lib/src/svg/icons/Timer.tsx @@ -15,9 +15,8 @@ const Timer: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Twitter.tsx b/packages/epo-react-lib/src/svg/icons/Twitter.tsx index 177032ce..776dfbfc 100644 --- a/packages/epo-react-lib/src/svg/icons/Twitter.tsx +++ b/packages/epo-react-lib/src/svg/icons/Twitter.tsx @@ -15,9 +15,8 @@ const Twitter: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/User.tsx b/packages/epo-react-lib/src/svg/icons/User.tsx index 67f19274..b5905bac 100644 --- a/packages/epo-react-lib/src/svg/icons/User.tsx +++ b/packages/epo-react-lib/src/svg/icons/User.tsx @@ -15,9 +15,8 @@ const User: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/UserInverted.tsx b/packages/epo-react-lib/src/svg/icons/UserInverted.tsx index 884eb3f4..e781b6c6 100644 --- a/packages/epo-react-lib/src/svg/icons/UserInverted.tsx +++ b/packages/epo-react-lib/src/svg/icons/UserInverted.tsx @@ -15,9 +15,8 @@ const UserInverted: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/Video.tsx b/packages/epo-react-lib/src/svg/icons/Video.tsx index 2ca3809f..7604f77e 100644 --- a/packages/epo-react-lib/src/svg/icons/Video.tsx +++ b/packages/epo-react-lib/src/svg/icons/Video.tsx @@ -15,9 +15,8 @@ const Video: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + diff --git a/packages/epo-react-lib/src/svg/icons/Word.tsx b/packages/epo-react-lib/src/svg/icons/Word.tsx index a14c0ab3..1cefd990 100644 --- a/packages/epo-react-lib/src/svg/icons/Word.tsx +++ b/packages/epo-react-lib/src/svg/icons/Word.tsx @@ -15,10 +15,8 @@ const Word: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); - return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/YouTube.tsx b/packages/epo-react-lib/src/svg/icons/YouTube.tsx index f5491a1f..e0023ea4 100644 --- a/packages/epo-react-lib/src/svg/icons/YouTube.tsx +++ b/packages/epo-react-lib/src/svg/icons/YouTube.tsx @@ -15,9 +15,8 @@ const YouTube: FunctionComponent = ({ className, }; - const mergedSvgProps = Object.assign(defaultProps, uniqueProps); return ( - + ); diff --git a/packages/epo-react-lib/src/svg/icons/defaultProps.ts b/packages/epo-react-lib/src/svg/icons/defaultProps.ts index 9aa4394c..4776f5ba 100644 --- a/packages/epo-react-lib/src/svg/icons/defaultProps.ts +++ b/packages/epo-react-lib/src/svg/icons/defaultProps.ts @@ -1,5 +1,4 @@ export default { xmlns: "http://www.w3.org/2000/svg", role: "presentation", - strokeWidth: 0, };