Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit e0e90a7

Browse files
authored
fix: remove create profile button (#10375)
1 parent 0b17bd0 commit e0e90a7

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

pages/[username].js

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useState } from "react";
22
import { IconContext } from "react-icons";
3-
import { FaArrowsRotate, FaEye, FaRegFaceSmileWink } from "react-icons/fa6";
3+
import { FaArrowsRotate, FaEye } from "react-icons/fa6";
44
import { remark } from "remark";
55
import strip from "strip-markdown";
66
import requestIp from "request-ip";
@@ -10,7 +10,6 @@ import { getServerSession } from "next-auth/next";
1010
import { getUserApi } from "./api/profiles/[username]/index";
1111
import { clientEnv } from "@config/schemas/clientSchema";
1212
import logger from "@config/logger";
13-
import Link from "@components/Link";
1413
import PageHead from "@components/PageHead";
1514
import MultiLayout from "@components/layouts/MultiLayout";
1615
import Page from "@components/Page";
@@ -71,7 +70,7 @@ export async function getServerSideProps(context) {
7170
};
7271
}
7372

74-
export default function User({ data, BASE_URL, isLoggedIn }) {
73+
export default function User({ data, BASE_URL }) {
7574
const [pwa, setPwa] = useState(false);
7675

7776
useEffect(() => {
@@ -114,26 +113,6 @@ export default function User({ data, BASE_URL, isLoggedIn }) {
114113
</div>
115114
)}
116115

117-
{!isLoggedIn && data.accountType === "free" && (
118-
<Link
119-
href="/pricing"
120-
rel="noopener noreferrer"
121-
target="_blank"
122-
className="fixed bottom-5 right-5 rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary-high"
123-
>
124-
<div className="flex px-4 py-2 bg-tertiary-medium text-primary-low items-center gap-1 rounded-full hover:bg-secondary-medium hover:drop-shadow-lg">
125-
<IconContext.Provider
126-
value={{ color: "white", style: { verticalAlign: "middle" } }}
127-
>
128-
<FaRegFaceSmileWink />
129-
</IconContext.Provider>
130-
<p className="text-sm font-medium text-primary-medium">
131-
Create your BioDrop Profile
132-
</p>
133-
</div>
134-
</Link>
135-
)}
136-
137116
{pwa && (
138117
<Button
139118
onClick={() => window.location.reload()}

0 commit comments

Comments
 (0)