Skip to content

Commit

Permalink
feat: add structure to imports
Browse files Browse the repository at this point in the history
  • Loading branch information
the-homeless-god committed Apr 1, 2022
1 parent 95d6440 commit b8bb194
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/components/atoms/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './Container'
export * from './Image'
export * from './LoginButton'
export * from './Text'
6 changes: 2 additions & 4 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -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'
1 change: 1 addition & 0 deletions src/components/molecules/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Mailto'
6 changes: 2 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b8bb194

Please sign in to comment.