autocomplete user code

This commit is contained in:
Max Peintner
2025-05-07 14:00:17 +02:00
parent ba4e8529f9
commit 602b8ad2f1

View File

@@ -37,13 +37,9 @@ export default async function Page(props: {
return ( return (
<DynamicTheme branding={branding}> <DynamicTheme branding={branding}>
<div className="flex flex-col items-center space-y-4"> <div className="flex flex-col items-center space-y-4">
{!userCode && ( <h1>{t("usercode.title")}</h1>
<> <p className="ztdl-p">{t("usercode.description")}</p>
<h1>{t("usercode.title")}</h1> <DeviceCodeForm userCode={userCode}></DeviceCodeForm>
<p className="ztdl-p">{t("usercode.description")}</p>
<DeviceCodeForm userCode={userCode}></DeviceCodeForm>
</>
)}
</div> </div>
</DynamicTheme> </DynamicTheme>
); );