From 523366873c759658780f716c33a7e6bddb6d2a97 Mon Sep 17 00:00:00 2001 From: Valentin Date: Mon, 28 Nov 2022 15:51:06 +0100 Subject: [PATCH] fix: Remove duplicate paths in icons Some icons have duplicate paths. It causes bad opacity when we use them. Removed duplicates from "folder", "gear", "share" and "trash" icons. --- assets/icons/ui/folder.svg | 7 +- assets/icons/ui/gear.svg | 7 +- assets/icons/ui/share.svg | 7 +- assets/icons/ui/trash.svg | 7 +- react/Icons/Folder.jsx | 10 +-- react/Icons/Gear.jsx | 10 +-- react/Icons/Share.jsx | 10 +-- react/Icons/Trash.jsx | 10 +-- react/__snapshots__/examples.spec.jsx.snap | 78 +++++----------------- 9 files changed, 42 insertions(+), 104 deletions(-) diff --git a/assets/icons/ui/folder.svg b/assets/icons/ui/folder.svg index 4db0cbf8cb..7adba7c80a 100644 --- a/assets/icons/ui/folder.svg +++ b/assets/icons/ui/folder.svg @@ -1,6 +1 @@ - - - - - - + \ No newline at end of file diff --git a/assets/icons/ui/gear.svg b/assets/icons/ui/gear.svg index 7d26cd5c2c..2441a98530 100644 --- a/assets/icons/ui/gear.svg +++ b/assets/icons/ui/gear.svg @@ -1,6 +1 @@ - - - - - - + \ No newline at end of file diff --git a/assets/icons/ui/share.svg b/assets/icons/ui/share.svg index 5e85433381..4c8656bc4e 100644 --- a/assets/icons/ui/share.svg +++ b/assets/icons/ui/share.svg @@ -1,6 +1 @@ - - - - - - + \ No newline at end of file diff --git a/assets/icons/ui/trash.svg b/assets/icons/ui/trash.svg index ab9e2fbdc1..648c9fee4f 100644 --- a/assets/icons/ui/trash.svg +++ b/assets/icons/ui/trash.svg @@ -1,6 +1 @@ - - - - - - + \ No newline at end of file diff --git a/react/Icons/Folder.jsx b/react/Icons/Folder.jsx index 2e73cd3a03..9a6a7d1e00 100644 --- a/react/Icons/Folder.jsx +++ b/react/Icons/Folder.jsx @@ -1,13 +1,13 @@ -// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/ui/folder.svg` to regenerate; +// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/folder.svg` to regenerate; import React from 'react' function SvgFolder(props) { return ( - - - - + ) } diff --git a/react/Icons/Gear.jsx b/react/Icons/Gear.jsx index 432b26e06b..7874420f79 100644 --- a/react/Icons/Gear.jsx +++ b/react/Icons/Gear.jsx @@ -1,13 +1,13 @@ -// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/ui/gear.svg` to regenerate; +// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/gear.svg` to regenerate; import React from 'react' function SvgGear(props) { return ( - - - - + ) } diff --git a/react/Icons/Share.jsx b/react/Icons/Share.jsx index 9d6032c443..c39e399655 100644 --- a/react/Icons/Share.jsx +++ b/react/Icons/Share.jsx @@ -1,13 +1,13 @@ -// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/ui/share.svg` to regenerate; +// Automatically created, please run `scripts/generate-svgr-icon.sh /Users/vdnj/Documents/CozyCloud/cozy-ui/assets/icons/ui/share.svg` to regenerate; import React from 'react' function SvgShare(props) { return ( - - - - + ) } diff --git a/react/Icons/Trash.jsx b/react/Icons/Trash.jsx index e5082403f0..68f1edad73 100644 --- a/react/Icons/Trash.jsx +++ b/react/Icons/Trash.jsx @@ -1,13 +1,13 @@ -// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/ui/trash.svg` to regenerate; +// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/trash.svg` to regenerate; import React from 'react' function SvgTrash(props) { return ( - - - - + ) } diff --git a/react/__snapshots__/examples.spec.jsx.snap b/react/__snapshots__/examples.spec.jsx.snap index cf8df66422..9d74057e03 100644 --- a/react/__snapshots__/examples.spec.jsx.snap +++ b/react/__snapshots__/examples.spec.jsx.snap @@ -420,10 +420,7 @@ exports[`BarButton should render examples: BarButton 3`] = ` exports[`BarButton should render examples: BarButton 4`] = ` "
- - - - +
" `; @@ -523,13 +520,13 @@ exports[`Button should render examples: Button 9`] = ` exports[`Button should render examples: Button 10`] = ` "
-
+
" `; exports[`Button should render examples: Button 11`] = ` "
-
+
" `; @@ -2823,10 +2820,7 @@ exports[`Hero should render examples: Hero 1`] = `

Your invoices at your fingertips directly from your statements

- - - - +

Cozy is working for you

Automatic follow-up of your medical expenses

@@ -3496,10 +3490,7 @@ exports[`Icon should render examples: Icon 1`] = `

Flashlight

- - - - +

Folder

@@ -3524,10 +3515,7 @@ exports[`Icon should render examples: Icon 1`] = `

FromUser

- - - - +

Gear

@@ -3972,10 +3960,7 @@ exports[`Icon should render examples: Icon 1`] = `

Setting

- - - - +

Share

@@ -4077,10 +4062,7 @@ exports[`Icon should render examples: Icon 1`] = `

Train

- - - - +

Trash

@@ -4966,10 +4948,7 @@ exports[`Icon should render examples: Icon 3`] = ` - - - - + @@ -4978,10 +4957,7 @@ exports[`Icon should render examples: Icon 3`] = ` - - - - + @@ -5277,10 +5253,7 @@ exports[`Icon should render examples: Icon 3`] = ` - - - - + @@ -5347,10 +5320,7 @@ exports[`Icon should render examples: Icon 3`] = ` - - - - + @@ -6551,10 +6521,7 @@ exports[`Icon should render examples: Icon 7`] = ` - - - - + @@ -6563,10 +6530,7 @@ exports[`Icon should render examples: Icon 7`] = ` - - - - + @@ -6862,10 +6826,7 @@ exports[`Icon should render examples: Icon 7`] = ` - - - - + @@ -6932,10 +6893,7 @@ exports[`Icon should render examples: Icon 7`] = ` - - - - + @@ -8109,13 +8067,13 @@ exports[`IconButton should render examples: IconButton 1`] = `

default

-

+

disabled

-

+