Skip to content

Commit e0730e0

Browse files
committed
fix: Remove default exports
1 parent c5479c2 commit e0730e0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import App from 'next/app'
33
import { ThemeProvider, CSSReset, ITheme, CSSResetProps } from '@chakra-ui/core'
4-
import defaultTheme from '../ui/theme'
4+
import { defaultTheme } from '../ui/theme'
55
import { Global, css, SerializedStyles } from '@emotion/core'
66

77
type GetGlobalConfig = Required<CSSResetProps>['config']
@@ -36,7 +36,7 @@ export interface AppTraits {
3636
Providers?: React.FunctionComponent<any>
3737
}
3838

39-
export default function createChakraNextApp(
39+
export function createChakraNextApp(
4040
traits: AppTraits = {
4141
theme: defaultTheme,
4242
getGlobalConfig: defaultGetGlobalConfig,

src/ui/theme.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { theme as chakraTheme, ITheme } from '@chakra-ui/core'
22
import { tailwindColors } from './colors'
33
import { systemFontStack, systemMonoFontStack } from './fonts'
44

5-
const theme: ITheme = {
5+
export const defaultTheme: ITheme = {
66
...chakraTheme,
77
fonts: {
88
...chakraTheme.fonts,
@@ -29,5 +29,3 @@ const theme: ITheme = {
2929
none: 'none'
3030
}
3131
}
32-
33-
export default theme

0 commit comments

Comments
 (0)