From 62b7524e53955efad84cce9973c3633cf93a31c6 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Wed, 11 Jan 2017 11:41:39 +0000 Subject: [PATCH] Fixing component`s requring of svg and adding to test file --- ui/src/components/close/index.js | 4 ++-- ui/src/shared/assets/close.svg | 16 ++++++++++++++++ ui/stories/index.js | 11 ++++++++--- ui/test/index.js | 6 ++++++ 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 ui/src/shared/assets/close.svg diff --git a/ui/src/components/close/index.js b/ui/src/components/close/index.js index 8ff69263..bc955fe9 100644 --- a/ui/src/components/close/index.js +++ b/ui/src/components/close/index.js @@ -1,6 +1,6 @@ const React = require('react'); const Styled = require('styled-components'); -const closeIcon = require('../../shared/assets/close.png'); + const fns = require('../../shared/functions'); const { @@ -30,7 +30,7 @@ const Close = ({ > Close ); diff --git a/ui/src/shared/assets/close.svg b/ui/src/shared/assets/close.svg new file mode 100644 index 00000000..02b2b668 --- /dev/null +++ b/ui/src/shared/assets/close.svg @@ -0,0 +1,16 @@ + + + + icon: close + Created with Sketch. + + + + + + + + + + + \ No newline at end of file diff --git a/ui/stories/index.js b/ui/stories/index.js index 2ce40224..e9d1f274 100644 --- a/ui/stories/index.js +++ b/ui/stories/index.js @@ -56,8 +56,6 @@ const { RadioGroup } = require('../src/'); - - const seed = require('./seed'); const { selectData @@ -368,7 +366,14 @@ storiesOf('Tabs', module) storiesOf('Close', module) .add('Default', () => ( - + + + )); storiesOf('Toggle', module) diff --git a/ui/test/index.js b/ui/test/index.js index 567c4204..8ef664a9 100644 --- a/ui/test/index.js +++ b/ui/test/index.js @@ -24,6 +24,12 @@ test('renders