update collection sharing model icons
This commit is contained in:
parent
a481903b50
commit
8c73ce60e9
|
@ -1,5 +1,3 @@
|
||||||
import { faSquare, faSquareCheck } from "@fortawesome/free-regular-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { ChangeEventHandler } from "react";
|
import { ChangeEventHandler } from "react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import TextInput from "@/components/TextInput";
|
import TextInput from "@/components/TextInput";
|
||||||
import useCollectionStore from "@/store/collections";
|
import useCollectionStore from "@/store/collections";
|
||||||
import toast, { Toaster } from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import {
|
|
||||||
faClose,
|
|
||||||
faCrown,
|
|
||||||
faUserPlus,
|
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { CollectionIncludingMembersAndLinkCount, Member } from "@/types/global";
|
import { CollectionIncludingMembersAndLinkCount, Member } from "@/types/global";
|
||||||
import getPublicUserData from "@/lib/client/getPublicUserData";
|
import getPublicUserData from "@/lib/client/getPublicUserData";
|
||||||
import useAccountStore from "@/store/account";
|
import useAccountStore from "@/store/account";
|
||||||
|
@ -219,10 +213,6 @@ export default function EditCollectionSharingModal({
|
||||||
{collectionOwner.name}
|
{collectionOwner.name}
|
||||||
</p>
|
</p>
|
||||||
<div className="flex text-xs gap-1 items-center">
|
<div className="flex text-xs gap-1 items-center">
|
||||||
<FontAwesomeIcon
|
|
||||||
icon={faCrown}
|
|
||||||
className="w-3 h-3 text-yellow-500"
|
|
||||||
/>
|
|
||||||
Admin
|
Admin
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -240,9 +230,8 @@ export default function EditCollectionSharingModal({
|
||||||
className="relative border p-2 rounded-xl border-neutral-content bg-base-200 flex flex-col sm:flex-row sm:items-center gap-2 justify-between"
|
className="relative border p-2 rounded-xl border-neutral-content bg-base-200 flex flex-col sm:flex-row sm:items-center gap-2 justify-between"
|
||||||
>
|
>
|
||||||
{permissions === true && (
|
{permissions === true && (
|
||||||
<FontAwesomeIcon
|
<i
|
||||||
icon={faClose}
|
className={"bi-x text-xl absolute right-1 top-1 text-neutral hover:text-red-500 dark:hover:text-red-500 duration-100 cursor-pointer"}
|
||||||
className="absolute right-2 top-2 text-neutral h-4 hover:text-red-500 dark:hover:text-red-500 duration-100 cursor-pointer"
|
|
||||||
title="Remove Member"
|
title="Remove Member"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const updatedMembers = collection.members.filter(
|
const updatedMembers = collection.members.filter(
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
import useCollectionStore from "@/store/collections";
|
import useCollectionStore from "@/store/collections";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import {
|
|
||||||
faCircleQuestion,
|
|
||||||
faCreditCard,
|
|
||||||
} from "@fortawesome/free-regular-svg-icons";
|
|
||||||
import {
|
|
||||||
faGithub,
|
|
||||||
faMastodon,
|
|
||||||
faXTwitter,
|
|
||||||
} from "@fortawesome/free-brands-svg-icons";
|
|
||||||
|
|
||||||
export default function SettingsSidebar({ className }: { className?: string }) {
|
export default function SettingsSidebar({ className }: { className?: string }) {
|
||||||
const LINKWARDEN_VERSION = "v2.4.0";
|
const LINKWARDEN_VERSION = "v2.4.0";
|
||||||
|
|
Ŝarĝante…
Reference in New Issue