minor UX improvement
This commit is contained in:
parent
b07040a26f
commit
11152caf6d
|
@ -45,6 +45,7 @@ export default function CollectionSelection({ onChange, defaultValue }: Props) {
|
|||
return (
|
||||
<Select
|
||||
isClearable
|
||||
placeholder="Unnamed Collection"
|
||||
onChange={onChange}
|
||||
options={options}
|
||||
styles={styles}
|
||||
|
|
|
@ -155,10 +155,7 @@ export default function AddOrEditLink({
|
|||
) : null}
|
||||
|
||||
<div>
|
||||
<p className="text-sm text-sky-500 mb-2">
|
||||
Collection
|
||||
<RequiredBadge />
|
||||
</p>
|
||||
<p className="text-sm text-sky-500 mb-2">Collection</p>
|
||||
<CollectionSelection
|
||||
onChange={setCollection}
|
||||
// defaultValue={{
|
||||
|
|
|
@ -15,7 +15,7 @@ export default async function postLink(
|
|||
if (!link.name) {
|
||||
return { response: "Please enter a valid name for the link.", status: 400 };
|
||||
} else if (!link.collection.name) {
|
||||
link.collection.name = "Other";
|
||||
link.collection.name = "Unnamed Collection";
|
||||
}
|
||||
|
||||
if (link.collection.id) {
|
||||
|
|
Ŝarĝante…
Reference in New Issue