Skip to content

Commit

Permalink
Modularize @zooniverse/react-components imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Oct 19, 2023
1 parent be94d0a commit 1a94a4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/app-root/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})

const nextConfig = {}
const nextConfig = {
experimental: {
optimizePackageImports: ['@zooniverse/react-components'],
}
}

export default bundleAnalyzer(nextConfig)
3 changes: 1 addition & 2 deletions packages/app-root/src/components/PageFooter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'
import AdminCheckbox from '@zooniverse/react-components/AdminCheckbox'
import ZooFooter from '@zooniverse/react-components/ZooFooter'
import { AdminCheckbox, ZooFooter } from '@zooniverse/react-components'
import { useContext } from 'react'

import { PanoptesAuthContext } from '../contexts'
Expand Down
2 changes: 1 addition & 1 deletion packages/app-root/src/components/PageHeader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import ZooHeader from '@zooniverse/react-components/ZooHeader'
import { ZooHeader } from '@zooniverse/react-components'
import { useContext } from 'react'

import {
Expand Down

0 comments on commit 1a94a4e

Please sign in to comment.