mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Make code more dry
This commit is contained in:
1 parent
6ceada073b
commit
028ba7c4d2
1 file changed
+7
-15
@@ -116,21 +116,13 @@
|
||||
<Typography.Text color="--fgcolor-neutral-secondary"
|
||||
>Choose a topic</Typography.Text>
|
||||
<Layout.Stack gap="s" direction="row">
|
||||
<Tag
|
||||
on:click={() => {
|
||||
$supportData.category = 'general';
|
||||
}}
|
||||
selected={$supportData.category === 'general'}>general</Tag>
|
||||
<Tag
|
||||
on:click={() => {
|
||||
$supportData.category = 'billing';
|
||||
}}
|
||||
selected={$supportData.category === 'billing'}>billing</Tag>
|
||||
<Tag
|
||||
on:click={() => {
|
||||
$supportData.category = 'technical';
|
||||
}}
|
||||
selected={$supportData.category === 'technical'}>technical</Tag>
|
||||
{#each ['general', 'billing', 'technical'] as category}
|
||||
<Tag
|
||||
on:click={() => {
|
||||
$supportData.category = category;
|
||||
}}
|
||||
selected={$supportData.category === category}>{category}</Tag>
|
||||
{/each}
|
||||
</Layout.Stack>
|
||||
</Layout.Stack>
|
||||
<InputSelect
|
||||
|
||||
Reference in new issue
Block a user