Small changes.
This commit is contained in:
parent
9b53608097
commit
f3e104aafe
|
@ -1,7 +1,8 @@
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import CollectionSelection from "./InputSelect/CollectionSelection";
|
import CollectionSelection from "./InputSelect/CollectionSelection";
|
||||||
import TagSelection from "./InputSelect/TagSelection";
|
import TagSelection from "./InputSelect/TagSelection";
|
||||||
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
import { faPlus } from "@fortawesome/free-solid-svg-icons";
|
||||||
interface NewLink {
|
interface NewLink {
|
||||||
name: string;
|
name: string;
|
||||||
url: string;
|
url: string;
|
||||||
|
@ -90,9 +91,10 @@ export default function () {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="mx-auto mt-2 bg-sky-500 text-white py-2 px-5 rounded select-none font-bold cursor-pointer duration-100 hover:bg-sky-400"
|
className="mx-auto mt-2 bg-sky-500 text-white flex items-center gap-2 py-2 px-5 rounded select-none font-bold cursor-pointer duration-100 hover:bg-sky-400"
|
||||||
onClick={() => postLink()}
|
onClick={() => postLink()}
|
||||||
>
|
>
|
||||||
|
<FontAwesomeIcon icon={faPlus} className="h-5" />
|
||||||
Add Link
|
Add Link
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,10 +17,14 @@ export default function ({ onChange }: any) {
|
||||||
return e.id === collectionId;
|
return e.id === collectionId;
|
||||||
});
|
});
|
||||||
|
|
||||||
const defaultCollection = {
|
let defaultCollection = null;
|
||||||
value: activeCollection?.id,
|
|
||||||
label: activeCollection?.name,
|
if (activeCollection) {
|
||||||
};
|
defaultCollection = {
|
||||||
|
value: activeCollection?.id,
|
||||||
|
label: activeCollection?.name,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const formatedCollections = collections.map((e) => {
|
const formatedCollections = collections.map((e) => {
|
||||||
|
|
|
@ -8,8 +8,9 @@ import {
|
||||||
faPlus,
|
faPlus,
|
||||||
faChevronDown,
|
faChevronDown,
|
||||||
faFolder,
|
faFolder,
|
||||||
faHouse,
|
faBoxesStacked,
|
||||||
faHashtag,
|
faHashtag,
|
||||||
|
faBookmark,
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
import SidebarItem from "./SidebarItem";
|
import SidebarItem from "./SidebarItem";
|
||||||
import useTagSlice from "@/store/tags";
|
import useTagSlice from "@/store/tags";
|
||||||
|
@ -50,7 +51,9 @@ export default function () {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SidebarItem item={{ name: "All Collections" }} icon={faHouse} />
|
<SidebarItem item={{ name: "All Links" }} icon={faBookmark} />
|
||||||
|
|
||||||
|
<SidebarItem item={{ name: "All Collections" }} icon={faBoxesStacked} />
|
||||||
|
|
||||||
<div className="text-gray-500 flex items-center justify-between mt-5">
|
<div className="text-gray-500 flex items-center justify-between mt-5">
|
||||||
<p className="text-sm p-3">Collections</p>
|
<p className="text-sm p-3">Collections</p>
|
||||||
|
|
Ŝarĝante…
Reference in New Issue