This commit is contained in:
1 parent
7957d14040
commit
a45ed58993
1 file changed
+1
-10
@@ -18,21 +18,12 @@
|
||||
type Step = 'java' | 'bedrock' | null;
|
||||
|
||||
let step = $state<Step>(null);
|
||||
|
||||
async function selectEdition(edition: 'java' | 'bedrock') {
|
||||
step = edition;
|
||||
|
||||
if (edition === 'java') {
|
||||
await tick();
|
||||
document.getElementById('firstname')?.focus();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<h1 class="text-center text-3xl lg:text-5xl">Anmeldung</h1>
|
||||
|
||||
<EditionSelection onSelect={selectEdition} selected={step} />
|
||||
<EditionSelection onSelect={(edition) => (step = edition)} selected={step} />
|
||||
|
||||
<div class:hidden={step !== 'java'}>
|
||||
<JavaSignup
|
||||
|
||||
Reference in new issue
Block a user