better public page [WIP]

This commit is contained in:
daniel31x13
2023-11-16 03:22:16 -05:00
parent 021f7c9481
commit d972ec2dab
10 changed files with 235 additions and 80 deletions
-5
View File
@@ -3,7 +3,6 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCrown } from "@fortawesome/free-solid-svg-icons";
import { CollectionIncludingMembersAndLinkCount } from "@/types/global";
import ProfilePhoto from "@/components/ProfilePhoto";
import { toast } from "react-hot-toast";
import getPublicUserData from "@/lib/client/getPublicUserData";
type Props = {
@@ -11,10 +10,6 @@ type Props = {
};
export default function ViewTeam({ collection }: Props) {
const currentURL = new URL(document.URL);
const publicCollectionURL = `${currentURL.origin}/public/collections/${collection.id}`;
const [collectionOwner, setCollectionOwner] = useState({
id: null,
name: "",