Skip to content

Commit

Permalink
fix: fixed exports
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Apr 1, 2022
1 parent 4db87a1 commit 620c942
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { default } from './lib/adapters/HistoryJs'
export { GeschichteWithHistory as default } from './lib/adapters/HistoryJs'
export {
serializers,
Serializer,
Expand All @@ -18,4 +18,4 @@ export {
StoreContext,
} from './lib/store'
export { pm, flattenConfig, createOrApplyPath } from './lib/utils'
export { default as GeschichteForNextjs } from './lib/adapters/NextJs'
export { GeschichteForNextjs } from './lib/adapters/NextJs'
2 changes: 0 additions & 2 deletions src/lib/adapters/HistoryJs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ export const GeschichteWithHistory = forwardRef<Refs, Props>(
)
}
)

export default GeschichteWithHistory
4 changes: 1 addition & 3 deletions src/lib/adapters/NextJs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface Props {
readonly defaultReplaceOptions?: RouterOptions
}

const GeschichteForNextjs: FC<Props> = ({
export const GeschichteForNextjs: FC<Props> = ({
children,
asPath,
initialClientOnlyAsPath,
Expand Down Expand Up @@ -104,5 +104,3 @@ const GeschichteForNextjs: FC<Props> = ({
<StoreContext.Provider value={useStore}>{children}</StoreContext.Provider>
)
}

export default GeschichteForNextjs
4 changes: 1 addition & 3 deletions src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import create, {
UseBoundStore,
} from 'zustand'
// tslint:disable-next-line:no-submodule-imports
import { subscribeWithSelector } from 'zustand/middleware'
import { subscribeWithSelector, devtools } from 'zustand/middleware'

// tslint:disable-next-line:no-submodule-imports
import shallow from 'zustand/shallow'
Expand Down Expand Up @@ -81,8 +81,6 @@ export const useGeschichte = <T extends State>(
) as unknown as StateCreator<StoreState<T>>

if (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') {
// tslint:disable-next-line:no-submodule-imports
const { devtools } = require('zustand/middleware')
return create<
StoreState<T>,
SetState<StoreState<T>>,
Expand Down

0 comments on commit 620c942

Please sign in to comment.