From 9db72ec773a2b41217601b39e8a8ebd89b18bde7 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Mon, 27 Jul 2020 10:12:05 -0300 Subject: [PATCH 1/3] add `fuelIndicator` icon --- src/dataDisplay/Icon/icon.stories.tsx | 1 + src/dataDisplay/Icon/images/fuelIndicator.tsx | 46 +++++++++++++++++++ src/dataDisplay/Icon/index.tsx | 2 + 3 files changed, 49 insertions(+) create mode 100644 src/dataDisplay/Icon/images/fuelIndicator.tsx diff --git a/src/dataDisplay/Icon/icon.stories.tsx b/src/dataDisplay/Icon/icon.stories.tsx index 0755dda9..442c5907 100644 --- a/src/dataDisplay/Icon/icon.stories.tsx +++ b/src/dataDisplay/Icon/icon.stories.tsx @@ -63,6 +63,7 @@ export const Icons = (): React.ReactElement => { 'eyeOff', 'filledCross', 'fingerPrint', + 'fuelIndicator', 'getInTouch', 'home', 'info', diff --git a/src/dataDisplay/Icon/images/fuelIndicator.tsx b/src/dataDisplay/Icon/images/fuelIndicator.tsx new file mode 100644 index 00000000..9b033291 --- /dev/null +++ b/src/dataDisplay/Icon/images/fuelIndicator.tsx @@ -0,0 +1,46 @@ +import React from 'react'; + +export default { + sm: ( + + + + + + + + + + ), + md: ( + + + + + + + + ), +}; diff --git a/src/dataDisplay/Icon/index.tsx b/src/dataDisplay/Icon/index.tsx index b4fddea0..82c1abc8 100644 --- a/src/dataDisplay/Icon/index.tsx +++ b/src/dataDisplay/Icon/index.tsx @@ -33,6 +33,7 @@ import eye from './images/eye'; import eyeOff from './images/eyeOff'; import filledCross from './images/filledCross'; import fingerPrint from './images/fingerPrint'; +import fuelIndicator from './images/fuelIndicator'; import getInTouch from './images/getInTouch'; import home from './images/home'; import info from './images/info'; @@ -121,6 +122,7 @@ const icons = { eyeOff, filledCross, fingerPrint, + fuelIndicator, getInTouch, home, info, From 2a765a1c45bf777378f786126c69d17a4c045a6f Mon Sep 17 00:00:00 2001 From: fernandomg Date: Mon, 27 Jul 2020 10:13:05 -0300 Subject: [PATCH 2/3] git ignore `.idea` directory --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f20d5e27..b08ead5e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ yalc.lock /storybook-static # misc +/.idea .DS_Store .env.local .env.development.local From 83c5e6ff5918b137ea723b00583c2f1d96bc14f8 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Mon, 27 Jul 2020 13:13:55 -0300 Subject: [PATCH 3/3] fix: remove unused `Theme` variable from `Icon` component --- src/dataDisplay/Icon/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dataDisplay/Icon/index.tsx b/src/dataDisplay/Icon/index.tsx index 82c1abc8..ff7483ab 100644 --- a/src/dataDisplay/Icon/index.tsx +++ b/src/dataDisplay/Icon/index.tsx @@ -73,7 +73,7 @@ import userEdit from './images/userEdit'; import wallet from './images/wallet'; import { rgba } from 'polished'; -import theme, { Theme, ThemeColors, ThemeIconSize } from '../../theme'; +import theme, { ThemeColors, ThemeIconSize } from '../../theme'; const StyledIcon = styled.span<{ color?: ThemeColors }>` .icon-color {