[FE] Show custom label on register confirmation. Fix bug.
This commit is contained in:
parent
cec6c0452f
commit
a2f0e23da3
@ -54,6 +54,7 @@ export function ManualRegistration(props: {
|
|||||||
props.onAdd(data);
|
props.onAdd(data);
|
||||||
// This is used to update & refresh the <SearchableSelect> component
|
// This is used to update & refresh the <SearchableSelect> component
|
||||||
setCount((x) => x + 1);
|
setCount((x) => x + 1);
|
||||||
|
setCustomLabel("");
|
||||||
};
|
};
|
||||||
|
|
||||||
const courseHasCustomLabel = () => {
|
const courseHasCustomLabel = () => {
|
||||||
|
@ -79,6 +79,7 @@ function Register(props: {courseId: number, date: string, customLabel: string, o
|
|||||||
>
|
>
|
||||||
<XIcon fill="var(--c-on-surface)" />
|
<XIcon fill="var(--c-on-surface)" />
|
||||||
</button>
|
</button>
|
||||||
|
{props.customLabel}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user