chore: upgrade to Next.js 13

This commit is contained in:
Elias Schneider
2022-10-31 11:20:54 +01:00
parent 880ad85a1e
commit 43299522ee
10 changed files with 760 additions and 788 deletions

View File

@@ -12,9 +12,8 @@ import {
} from "@mantine/core";
import { useClipboard } from "@mantine/hooks";
import { useModals } from "@mantine/modals";
import { NextLink } from "@mantine/next";
import moment from "moment";
import getConfig from "next/config";
import Link from "next/link";
import { useRouter } from "next/router";
import { useEffect, useState } from "react";
import { TbLink, TbTrash } from "react-icons/tb";
@@ -24,8 +23,6 @@ import shareService from "../../services/share.service";
import { MyShare } from "../../types/share.type";
import toast from "../../utils/toast.util";
const { publicRuntimeConfig } = getConfig();
const MyShares = () => {
const modals = useModals();
const clipboard = useClipboard();
@@ -54,7 +51,7 @@ const MyShares = () => {
<Title order={3}>It's empty here 👀</Title>
<Text>You don't have any shares.</Text>
<Space h={5} />
<Button component={NextLink} href="/upload" variant="light">
<Button component={Link} href="/upload" variant="light">
Create one
</Button>
</Stack>