Skip to content

Commit

Permalink
chore(src): ⬆️ Update to Mantine 7.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Feb 6, 2024
1 parent 50dcae8 commit 1bd93f8
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 131 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@
"@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0",
"@icons-pack/react-simple-icons": "^5.5.0",
"@mantine/carousel": "^7.0.0",
"@mantine/core": "^7.0.0",
"@mantine/dates": "^7.0.0",
"@mantine/dropzone": "^7.0.0",
"@mantine/carousel": "^7.5.1",
"@mantine/core": "^7.5.1",
"@mantine/dates": "^7.5.1",
"@mantine/dropzone": "^7.5.1",
"@mantine/form": "^7.1.3",
"@mantine/hooks": "^7.0.0",
"@mantine/modals": "^7.0.0",
"@mantine/hooks": "^7.5.1",
"@mantine/modals": "^7.5.1",
"@mantine/next": "^6.0.21",
"@mantine/notifications": "^7.0.0",
"@mantine/nprogress": "^7.0.0",
"@mantine/notifications": "^7.5.1",
"@mantine/nprogress": "^7.5.1",
"@mantine/prism": "6.0.21",
"@mantine/rte": "^5.10.5",
"@mantine/spotlight": "^7.0.0",
"@mantine/tiptap": "^7.0.0",
"@mantine/spotlight": "^7.5.1",
"@mantine/tiptap": "^7.5.1",
"@mapbox/mapbox-gl-draw": "^1.4.3",
"@next/bundle-analyzer": "^13.5.6",
"@react-three/drei": "^9.56.10",
Expand Down
30 changes: 22 additions & 8 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css';
import 'mapbox-gl/dist/mapbox-gl.css';
import '../styles/globals.css';

import type { AppProps } from 'next/app';
import CookieBanner from '../components/CookieBanner';
import { DefaultSeo } from 'next-seo';
import { Inter } from 'next/font/google';
import { MantineProvider } from '@mantine/core';
import { useLocalStorage } from '@mantine/hooks';
import { ModalsProvider } from '@mantine/modals';
import { Notifications } from '@mantine/notifications';
import { RouterTransition } from '../components/RouterTransition';
import SWRSetup from '../components/SWRSetup';
import { SessionProvider } from 'next-auth/react';
import { appWithTranslation } from 'next-i18next';
import { DefaultSeo } from 'next-seo';
import type { AppProps } from 'next/app';
import { Inter } from 'next/font/google';
import defaultSeo from '../../next-seo.config';
import localFont from 'next/font/local';
import { useEffect } from 'react';
import defaultSeo from '../../next-seo.config';
import CookieBanner from '../components/CookieBanner';
import { RouterTransition } from '../components/RouterTransition';
import SWRSetup from '../components/SWRSetup';
import { useLocalStorage } from '@mantine/hooks';

export const interFont = Inter({
subsets: ['latin'],
Expand Down Expand Up @@ -79,6 +79,20 @@ function MyApp({ Component, pageProps }: AppProps) {
lg: '75em',
xl: '88em',
},
colors: {
dark: [
'#C1C2C5',
'#A6A7AB',
'#909296',
'#5c5f66',
'#373A40',
'#2C2E33',
'#25262b',
'#1A1B1E',
'#141517',
'#101113',
],
},
}}
>
<ModalsProvider>
Expand Down
4 changes: 1 addition & 3 deletions src/pages/me/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MePage: NextPage = () => {
const theme = useMantineTheme();
const router = useRouter();
const handleCreateClaim = () => {
const handleSubmit = (v: string) => {
const handleSubmit = (v: any) => {
fetch(process.env.NEXT_PUBLIC_API_URL + `/claims?slug=true`, {
method: 'POST',
headers: {
Expand Down Expand Up @@ -358,8 +358,6 @@ const MePage: NextPage = () => {
<Grid.Col
span={{ sm: 6 }}
style={{
backgroundColor:
scheme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[1],
borderRadius: theme.radius.xs,
cursor: 'pointer',
minHeight: '10vh',
Expand Down
4 changes: 4 additions & 0 deletions src/styles/components/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@
}
}

.link:hover {
text-decoration: none;
}

.userMenu {
border: none !important;
@media (max-width: $mantine-breakpoint-sm) {
Expand Down
Loading

0 comments on commit 1bd93f8

Please sign in to comment.