File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
src/components/StablecoinAccordion Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,19 @@ import { TranslationKey } from "../../utils/translations"
2
2
3
3
export type CategoryNameType = "dapps" | "buy" | "earn" | "generate"
4
4
5
- type AccordionButtonContentType = Record <
6
- CategoryNameType ,
7
- {
8
- emoji : string
9
- title : TranslationKey
10
- pill ?: {
11
- color : string
12
- name : TranslationKey
13
- }
14
- textPreview : TranslationKey
5
+ type AccordionButtonContentType = {
6
+ emoji : string
7
+ title : TranslationKey
8
+ pill ?: {
9
+ color : string
10
+ name : TranslationKey
15
11
}
16
- >
12
+ textPreview : TranslationKey
13
+ }
17
14
18
- export const accordionButtonContent : AccordionButtonContentType = {
15
+ export const accordionButtonContent : {
16
+ [ key in CategoryNameType ] : AccordionButtonContentType
17
+ } = {
19
18
dapps : {
20
19
emoji : ":twisted_rightwards_arrows:" ,
21
20
title : "page-stablecoins-accordion-swap-title" ,
You can’t perform that action at this time.
0 commit comments