update missing collection color picker icon
This commit is contained in:
parent
e9acb548bf
commit
feda50464c
|
@ -27,18 +27,14 @@ export default function NewCollectionModal({ onClose }: Props) {
|
|||
const { addCollection } = useCollectionStore();
|
||||
|
||||
const submit = async () => {
|
||||
if (!submitLoader) {
|
||||
setSubmitLoader(true);
|
||||
if (submitLoader) return;
|
||||
if (!collection) return null;
|
||||
|
||||
setSubmitLoader(true);
|
||||
|
||||
const load = toast.loading("Creating...");
|
||||
|
||||
let response;
|
||||
|
||||
response = await addCollection(collection as any);
|
||||
|
||||
let response = await addCollection(collection as any);
|
||||
toast.dismiss(load);
|
||||
|
||||
if (response.ok) {
|
||||
|
@ -47,7 +43,6 @@ export default function NewCollectionModal({ onClose }: Props) {
|
|||
} else toast.error(response.data as string);
|
||||
|
||||
setSubmitLoader(false);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -73,8 +68,7 @@ export default function NewCollectionModal({ onClose }: Props) {
|
|||
<p className="w-full mb-2">Color</p>
|
||||
<div className="color-picker flex justify-between">
|
||||
<div className="flex flex-col gap-2 items-center w-32">
|
||||
<div style={{ color: collection.color }}>
|
||||
</div>
|
||||
<i className={"bi-folder2 text-5xl"} style={{ color: collection.color }}></i>
|
||||
<div
|
||||
className="btn btn-ghost btn-xs"
|
||||
onClick={() =>
|
||||
|
|
Ŝarĝante…
Reference in New Issue