Skip to content

Commit

Permalink
use Mantine as a peerDep
Browse files Browse the repository at this point in the history
This will have a benefit when it comes to Next.js code splitting
on build
  • Loading branch information
JoeKarow committed Dec 30, 2022
1 parent b31bc1b commit 86c7a29
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 20 deletions.
21 changes: 21 additions & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,26 @@
},
"dependencies": {
"@crowdin/ota-client": "0.7.0",
"@emotion/react": "11.10.5",
"@emotion/server": "11.10.0",
"@mantine/carousel": "5.9.5",
"@mantine/core": "5.9.5",
"@mantine/dates": "5.9.5",
"@mantine/dropzone": "5.9.5",
"@mantine/form": "5.9.5",
"@mantine/hooks": "5.9.5",
"@mantine/modals": "5.9.5",
"@mantine/next": "5.9.5",
"@mantine/notifications": "5.9.5",
"@mantine/nprogress": "5.9.5",
"@mantine/prism": "5.9.5",
"@mantine/spotlight": "5.9.5",
"@mantine/tiptap": "5.9.5",
"@next/bundle-analyzer": "13.1.1",
"@tanstack/react-query": "4.20.4",
"@tiptap/extension-link": "2.0.0-beta.209",
"@tiptap/react": "2.0.0-beta.209",
"@tiptap/starter-kit": "2.0.0-beta.209",
"@trpc/client": "10.7.0",
"@trpc/next": "10.7.0",
"@trpc/react-query": "10.7.0",
Expand All @@ -30,6 +48,9 @@
"@weareinreach/db": "0.100.0",
"@weareinreach/ui": "0.100.0",
"axios": "1.2.2",
"dayjs": "1.11.7",
"embla-carousel-react": "7.0.5",
"feather-icons-react": "0.6.2",
"i18next": "22.4.6",
"next": "13.1.1",
"next-auth": "4.18.7",
Expand Down
7 changes: 4 additions & 3 deletions apps/app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import { appWithTranslation } from 'next-i18next'
// import { GetServerSidePropsContext } from 'next'
import type { AppProps } from 'next/app'

import { MantineProvider } from '@mantine/core'
import { ModalsProvider } from '@mantine/modals'
import { NotificationsProvider } from '@mantine/notifications'

import { AppLayout } from '@weareinreach/ui/layout'
import { MantineProvider } from '@weareinreach/ui/mantine/core'
import { ModalsProvider } from '@weareinreach/ui/mantine/modals'
import { NotificationsProvider } from '@weareinreach/ui/mantine/notifications'
import { appCache, appTheme } from '@weareinreach/ui/theme'

import { default as navItems } from '~/data/nav.json'
Expand Down
3 changes: 2 additions & 1 deletion apps/app/src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document'

import { ServerStyles, createStylesServer } from '@weareinreach/ui/mantine/next'
import { ServerStyles, createStylesServer } from '@mantine/next'

import { appCache } from '@weareinreach/ui/theme'

const stylesServer = createStylesServer(appCache)
Expand Down
1 change: 0 additions & 1 deletion packages/ui/iconify/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/carousel.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/core.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/dates.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/dropzone.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/form.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/hooks.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/modals.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/next.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/notifications.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/nprogress.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/spotlight.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/tiptap-extension-link.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/tiptap-react.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/tiptap-starter-kit.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/mantine/tiptap.ts

This file was deleted.

0 comments on commit 86c7a29

Please sign in to comment.