File tree Expand file tree Collapse file tree 5 files changed +18
-13
lines changed
src/components/Staking/StakingProductsCardGrid Expand file tree Collapse file tree 5 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,16 @@ import {
12
12
ListIcon ,
13
13
ListItem ,
14
14
} from "@chakra-ui/react"
15
+
15
16
import { ButtonLink } from "../../Buttons"
16
- import Translation from "../../Translation"
17
17
import {
18
18
CautionProductGlyphIcon ,
19
19
GreenCheckProductGlyphIcon ,
20
20
UnknownProductGlyphIcon ,
21
21
WarningProductGlyphIcon ,
22
22
} from "../../icons/staking"
23
+ import Translation from "../../Translation"
24
+
23
25
import { FlagType , Product } from "./types"
24
26
25
27
const getIconFromName = ( imageName : string ) : typeof ChakraIcon | undefined => {
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import { SimpleGrid } from "@chakra-ui/react"
3
+
3
4
import { StakingProductCard } from "./StakingProductCard"
4
- import { useStakingProductsCardGrid } from "./useStakingProductsCardGrid"
5
5
import { StakingProductsCategoryKeys } from "./types"
6
+ import { useStakingProductsCardGrid } from "./useStakingProductsCardGrid"
6
7
7
8
export interface IProps {
8
9
category : StakingProductsCategoryKeys
Original file line number Diff line number Diff line change 1
- import { type MatomoEventOptions } from "../../../utils/matomo"
2
- import type stakingProducts from "../../../data/staking-products.json"
1
+ import type { MatomoEventOptions } from "@/lib/utils/matomo"
2
+
3
+ import type stakingProducts from "@/data/staking-products.json"
3
4
4
5
export enum FlagType {
5
6
VALID = "green-check" ,
Original file line number Diff line number Diff line change 1
1
import { useEffect , useState } from "react"
2
2
import { shuffle } from "lodash"
3
3
import { useColorModeValue } from "@chakra-ui/react"
4
+
5
+ import stakingProducts from "@/data/staking-products.json"
6
+
4
7
import {
5
8
KeyGenType ,
6
9
NodeToolsType ,
@@ -9,15 +12,13 @@ import {
9
12
SaasType ,
10
13
StakingProductsCategoryKeys ,
11
14
} from "./types"
12
- import stakingProducts from "../../../data/staking-products.json"
13
-
14
15
import {
15
16
getBrandProperties ,
16
- getTagProperties ,
17
- getSharedSecurityProperties ,
18
- getFlagFromBoolean ,
19
17
getDiversityOfClients ,
18
+ getFlagFromBoolean ,
20
19
getRankingScore ,
20
+ getSharedSecurityProperties ,
21
+ getTagProperties ,
21
22
} from "./utils"
22
23
23
24
export const useStakingProductsCardGrid = ( {
Original file line number Diff line number Diff line change 1
- import { Product , FlagType , StakingCategoryType } from "./types"
1
+ import { FlagType , Product , StakingCategoryType } from "./types"
2
2
3
3
const scoreOpenSource = ( product : Product ) : 1 | 0 => {
4
4
return product . openSource === FlagType . VALID ? 1 : 0
@@ -129,10 +129,10 @@ const getSharedSecurityProperties = (
129
129
} )
130
130
131
131
export {
132
- getRankingScore ,
132
+ getBrandProperties ,
133
133
getDiversityOfClients ,
134
134
getFlagFromBoolean ,
135
- getBrandProperties ,
136
- getTagProperties ,
135
+ getRankingScore ,
137
136
getSharedSecurityProperties ,
137
+ getTagProperties ,
138
138
}
You can’t perform that action at this time.
0 commit comments