Skip to content

Commit

Permalink
Merge pull request #34 from Kyro3400/Mantine-fix
Browse files Browse the repository at this point in the history
fix: Fix mantine errors
  • Loading branch information
Kyro3400 authored Aug 17, 2024
2 parents edbc061 + 3855764 commit f287703
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion components/elements/copy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FunctionComponent } from "react";
import { CopyButton, createStyles, Text, Tooltip } from "@mantine/emotion";
import { CopyButton, createStyles, Text, Tooltip } from "@mantine/core";

export interface CopyProps {
value: string;
Expand Down
2 changes: 1 addition & 1 deletion components/elements/redirect.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FunctionComponent, PropsWithChildren, ReactNode } from "react";
import { Box, Card, createStyles, Text, Tooltip } from "@mantine/emotion";
import { Box, Card, createStyles, Text, Tooltip } from "@mantine/core";
import { PageLast } from "@carbon/icons-react";
import { navLinks } from "config";
import { useRouter } from "next/router";
Expand Down
2 changes: 1 addition & 1 deletion components/elements/tip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FunctionComponent, PropsWithChildren, ReactNode } from "react";
import { Box, Card, createStyles, Text } from "@mantine/emotion";
import { Box, Card, createStyles, Text } from "@mantine/core";
import { InformationFilled } from "@carbon/icons-react";

export interface TipProps {
Expand Down
3 changes: 1 addition & 2 deletions components/footer/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createStyles } from '@mantine/emotion';
import { rem } from '@mantine/core';
import { createStyles, rem } from '@mantine/core';

// Styles for the Footer component
// Used mantine's createStyles function
Expand Down
2 changes: 1 addition & 1 deletion components/header/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createStyles } from "@mantine/emotion";
import { createStyles } from "@mantine/core";

// Styles for the Header component
// Used mantine's createStyles function
Expand Down
2 changes: 1 addition & 1 deletion components/links/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createStyles } from "@mantine/emotion";
import { createStyles } from "@mantine/core";

export const useStyles = createStyles((theme, _, u) => ({
control: {
Expand Down
2 changes: 1 addition & 1 deletion components/navbar/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createStyles } from "@mantine/emotion";
import { createStyles } from "@mantine/core";

// Styles for the Navbar component
// Used mantine's createStyles function
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
"@danbot-hosting/ts-config": "^1.0.0",
"@emotion/react": "^11.10.6",
"@emotion/server": "^11.10.0",
"@mantine/core": "^7.0.0",
"@mantine/emotion": "^7.0.0",
"@mantine/hooks": "^7.0.0",
"@mantine/next": "^6.0.6",
"@mantine/notifications": "^7.0.0",
"@mantine/nprogress": "^7.0.0",
"@mantine/spotlight": "^7.0.0",
"@mantine/core": "^6.0.22",
"@mantine/hooks": "^6.0.22",
"@mantine/next": "^6.0.22",
"@mantine/notifications": "^6.0.22",
"@mantine/nprogress": "^6.0.22",
"@mantine/spotlight": "^6.0.22",
"@mdx-js/loader": "^3.0.0",
"@mdx-js/react": "^3.0.0",
"@next/mdx": "^14.0.0",
Expand Down
4 changes: 2 additions & 2 deletions pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { NextPage } from "next";
import { ReactElement } from "react";
import { createStyles, Title, Text, Container } from "@mantine/emotion";
import { createStyles, Title, Text, Container } from "@mantine/core";
import Stars from "@public/illustrations/stars.svg";
import Image from "next/image";

const useStyles = createStyles((theme, _, u) => ({
const useStyles = createStyles((theme) => ({
root: {
display: "flex",
flexDirection: "column",
Expand Down

0 comments on commit f287703

Please sign in to comment.