Merge pull request #219 from linkwarden/dev

Dev
This commit is contained in:
Daniel 2023-10-11 13:20:11 -04:00 committed by GitHub
commit feef1c298a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import { PublicCollectionIncludingLinks } from "@/types/global";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
import { motion, Variants } from "framer-motion";
import Head from "next/head";
const cardVariants: Variants = {
offscreen: {
@ -62,6 +63,16 @@ export default function PublicCollections() {
return data ? (
<div className="max-w-4xl mx-auto p-5 bg">
{data ? (
<Head>
<title>{data.name} | Linkwarden</title>
<meta
property="og:title"
content={`${data.name} | Linkwarden`}
key="title"
/>
</Head>
) : undefined}
<div
className={`border border-solid border-sky-100 text-center bg-gradient-to-tr from-sky-100 from-10% via-gray-100 via-20% rounded-3xl shadow-lg p-5`}
>

View File

@ -1,6 +1,5 @@
import SubmitButton from "@/components/SubmitButton";
import { signOut } from "next-auth/react";
import Image from "next/image";
import { useEffect, useState } from "react";
import { toast } from "react-hot-toast";
import { useSession } from "next-auth/react";
@ -11,7 +10,7 @@ import { Plan } from "@/types/global";
export default function Subscribe() {
const [submitLoader, setSubmitLoader] = useState(false);
const [plan, setPlan] = useState<Plan>(0);
const [plan, setPlan] = useState<Plan>(1);
const { data, status } = useSession();
const router = useRouter();