Commit 028ba7c 1 parent 6ceada0 commit 028ba7c Copy full SHA for 028ba7c
File tree 1 file changed +7
-15
lines changed
1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change 116
116
<Typography .Text color =" --fgcolor-neutral-secondary"
117
117
>Choose a topic</Typography .Text >
118
118
<Layout .Stack gap =" s" direction =" row" >
119
- <Tag
120
- on:click ={() => {
121
- $supportData .category = ' general' ;
122
- }}
123
- selected ={$supportData .category === ' general' }>general</Tag >
124
- <Tag
125
- on:click ={() => {
126
- $supportData .category = ' billing' ;
127
- }}
128
- selected ={$supportData .category === ' billing' }>billing</Tag >
129
- <Tag
130
- on:click ={() => {
131
- $supportData .category = ' technical' ;
132
- }}
133
- selected ={$supportData .category === ' technical' }>technical</Tag >
119
+ {#each [' general' , ' billing' , ' technical' ] as category }
120
+ <Tag
121
+ on:click ={() => {
122
+ $supportData .category = category ;
123
+ }}
124
+ selected ={$supportData .category === category }>{category }</Tag >
125
+ {/each }
134
126
</Layout .Stack >
135
127
</Layout .Stack >
136
128
<InputSelect
You can’t perform that action at this time.
0 commit comments