|
|
|
@ -114,12 +114,15 @@ export default function NewBookmarkForm({
|
|
|
|
title={'Bookmark'}>
|
|
|
|
title={'Bookmark'}>
|
|
|
|
<form className='flex flex-col gap-4'>
|
|
|
|
<form className='flex flex-col gap-4'>
|
|
|
|
<Select
|
|
|
|
<Select
|
|
|
|
label='Select category'
|
|
|
|
label='Category'
|
|
|
|
placeholder='Select a category'
|
|
|
|
placeholder='Select a category'
|
|
|
|
selectedKeys={value}
|
|
|
|
selectedKeys={value}
|
|
|
|
onSelectionChange={setValue}>
|
|
|
|
onSelectionChange={setValue}
|
|
|
|
{categories.length > 0 ? (
|
|
|
|
disabledKeys={['placeholder']}>
|
|
|
|
categories.map(
|
|
|
|
<SelectSection
|
|
|
|
|
|
|
|
showDivider
|
|
|
|
|
|
|
|
title='Categories'>
|
|
|
|
|
|
|
|
{[...categories].map(
|
|
|
|
(category) => (
|
|
|
|
(category) => (
|
|
|
|
<SelectItem
|
|
|
|
<SelectItem
|
|
|
|
key={
|
|
|
|
key={
|
|
|
|
@ -131,14 +134,8 @@ export default function NewBookmarkForm({
|
|
|
|
{category.name}
|
|
|
|
{category.name}
|
|
|
|
</SelectItem>
|
|
|
|
</SelectItem>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
) : (
|
|
|
|
|
|
|
|
<SelectItem
|
|
|
|
|
|
|
|
key={'test'}
|
|
|
|
|
|
|
|
value={'test'}>
|
|
|
|
|
|
|
|
{'test'}
|
|
|
|
|
|
|
|
</SelectItem>
|
|
|
|
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
</SelectSection>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
|
autoFocus
|
|
|
|
autoFocus
|
|
|
|
|