feat: pages (#151)

* wip

* wip

* wip

* wwip

* wip

* wip

* fix(util): rmeove checking to existing in slug

* wip

* chore: handle create page

* chore: handle page title untitled
This commit is contained in:
Aslam
2024-09-09 17:35:15 +07:00
committed by GitHub
parent 66c96efad8
commit 5f537d5618
14 changed files with 420 additions and 39 deletions
@@ -82,7 +82,7 @@ export const LinkItem = React.memo(
toast.success("Link learning state updated", defaultToast)
}
} else {
const slug = generateUniqueSlug(personalLinks.toJSON(), link.title)
const slug = generateUniqueSlug(link.title)
const newPersonalLink = PersonalLink.create(
{
url: link.url,