diff --git a/src/components/atoms/index.ts b/src/components/atoms/index.ts new file mode 100644 index 0000000..04c5586 --- /dev/null +++ b/src/components/atoms/index.ts @@ -0,0 +1,4 @@ +export * from './Container' +export * from './Image' +export * from './LoginButton' +export * from './Text' diff --git a/src/components/index.ts b/src/components/index.ts index 71c240a..37e19f9 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,4 +1,2 @@ -import { Image } from './atoms/Image' -import { LoginButton } from './atoms/LoginButton' - -export default { LoginButton, Image } +export * as atoms from './atoms' +export * as molecules from './molecules' diff --git a/src/components/molecules/index.ts b/src/components/molecules/index.ts new file mode 100644 index 0000000..62bf7b2 --- /dev/null +++ b/src/components/molecules/index.ts @@ -0,0 +1 @@ +export * from './Mailto' diff --git a/src/index.tsx b/src/index.tsx index cfe480f..a705f09 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,3 @@ -import { Image } from './components/atoms/Image' -import { LoginButton } from './components/atoms/LoginButton' -import { Text } from './components/atoms/Text' +import * as components from './components' -export default { Image, LoginButton, Text } +export default components