Skip to content

Commit 56d454f

Browse files
chore(StakingProductsCardGrid): update imports
1 parent f36dc9b commit 56d454f

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

src/components/Staking/StakingProductsCardGrid/StakingProductCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ import {
1212
ListIcon,
1313
ListItem,
1414
} from "@chakra-ui/react"
15+
1516
import { ButtonLink } from "../../Buttons"
16-
import Translation from "../../Translation"
1717
import {
1818
CautionProductGlyphIcon,
1919
GreenCheckProductGlyphIcon,
2020
UnknownProductGlyphIcon,
2121
WarningProductGlyphIcon,
2222
} from "../../icons/staking"
23+
import Translation from "../../Translation"
24+
2325
import { FlagType, Product } from "./types"
2426

2527
const getIconFromName = (imageName: string): typeof ChakraIcon | undefined => {

src/components/Staking/StakingProductsCardGrid/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from "react"
22
import { SimpleGrid } from "@chakra-ui/react"
3+
34
import { StakingProductCard } from "./StakingProductCard"
4-
import { useStakingProductsCardGrid } from "./useStakingProductsCardGrid"
55
import { StakingProductsCategoryKeys } from "./types"
6+
import { useStakingProductsCardGrid } from "./useStakingProductsCardGrid"
67

78
export interface IProps {
89
category: StakingProductsCategoryKeys

src/components/Staking/StakingProductsCardGrid/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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"
34

45
export enum FlagType {
56
VALID = "green-check",

src/components/Staking/StakingProductsCardGrid/useStakingProductsCardGrid.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { useEffect, useState } from "react"
22
import { shuffle } from "lodash"
33
import { useColorModeValue } from "@chakra-ui/react"
4+
5+
import stakingProducts from "@/data/staking-products.json"
6+
47
import {
58
KeyGenType,
69
NodeToolsType,
@@ -9,15 +12,13 @@ import {
912
SaasType,
1013
StakingProductsCategoryKeys,
1114
} from "./types"
12-
import stakingProducts from "../../../data/staking-products.json"
13-
1415
import {
1516
getBrandProperties,
16-
getTagProperties,
17-
getSharedSecurityProperties,
18-
getFlagFromBoolean,
1917
getDiversityOfClients,
18+
getFlagFromBoolean,
2019
getRankingScore,
20+
getSharedSecurityProperties,
21+
getTagProperties,
2122
} from "./utils"
2223

2324
export const useStakingProductsCardGrid = ({

src/components/Staking/StakingProductsCardGrid/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Product, FlagType, StakingCategoryType } from "./types"
1+
import { FlagType, Product, StakingCategoryType } from "./types"
22

33
const scoreOpenSource = (product: Product): 1 | 0 => {
44
return product.openSource === FlagType.VALID ? 1 : 0
@@ -129,10 +129,10 @@ const getSharedSecurityProperties = (
129129
})
130130

131131
export {
132-
getRankingScore,
132+
getBrandProperties,
133133
getDiversityOfClients,
134134
getFlagFromBoolean,
135-
getBrandProperties,
136-
getTagProperties,
135+
getRankingScore,
137136
getSharedSecurityProperties,
137+
getTagProperties,
138138
}

0 commit comments

Comments
 (0)