[FE] Show custom label on register confirmation. Fix bug.

master
Araozu 2023-09-02 20:19:57 -05:00
parent cec6c0452f
commit a2f0e23da3
2 changed files with 2 additions and 0 deletions

View File

@ -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 = () => {

View File

@ -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>
); );
} }