Commit b615838c authored by Kyle Keating's avatar Kyle Keating Committed by Kyle Keating

Pascal case frontend-shared components

Add /components folder in frontend-shared
parent 24987f8d
import { render } from 'preact'; import { render } from 'preact';
import { SvgIcon, availableIcons, registerIcons } from '../svg-icon'; import { SvgIcon, availableIcons, registerIcons } from '../SvgIcon';
describe('SvgIcon', () => { describe('SvgIcon', () => {
// Tests here use DOM APIs rather than Enzyme because SvgIcon uses // Tests here use DOM APIs rather than Enzyme because SvgIcon uses
...@@ -15,8 +15,8 @@ describe('SvgIcon', () => { ...@@ -15,8 +15,8 @@ describe('SvgIcon', () => {
registerIcons( registerIcons(
{ {
'arrow-left': require('../../images/icons/arrow-left.svg'), 'arrow-left': require('../../../images/icons/arrow-left.svg'),
'arrow-right': require('../../images/icons/arrow-right.svg'), 'arrow-right': require('../../../images/icons/arrow-right.svg'),
}, },
{ reset: true } { reset: true }
); );
......
// Components // Components
export { SvgIcon, registerIcons } from './svg-icon'; export { SvgIcon, registerIcons } from './components/SvgIcon';
// Hooks // Hooks
export { useElementShouldClose } from './hooks/use-element-should-close'; export { useElementShouldClose } from './hooks/use-element-should-close';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment