diff --git a/src/modules/Platform/components/Assets.tsx b/src/modules/Platform/components/Assets.tsx index 652c1d8..5f55374 100644 --- a/src/modules/Platform/components/Assets.tsx +++ b/src/modules/Platform/components/Assets.tsx @@ -29,7 +29,7 @@ const Assets = (): JSX.Element => { initTableData(); }, []); return ( -
+
diff --git a/src/modules/Platform/components/Chains/index.tsx b/src/modules/Platform/components/Chains/index.tsx index b9cf298..ffd01ec 100644 --- a/src/modules/Platform/components/Chains/index.tsx +++ b/src/modules/Platform/components/Chains/index.tsx @@ -47,7 +47,7 @@ const Chains = (): JSX.Element => { initTableData(); }, [$apiData]); return ( -
+
diff --git a/src/modules/Platform/components/Integrations.tsx b/src/modules/Platform/components/Integrations.tsx index 4c57b6c..abd934f 100644 --- a/src/modules/Platform/components/Integrations.tsx +++ b/src/modules/Platform/components/Integrations.tsx @@ -34,7 +34,7 @@ const Integrations = (): JSX.Element => { initTableData(); }, []); return ( -
+
diff --git a/src/modules/Platform/components/Network/index.tsx b/src/modules/Platform/components/Network/index.tsx index 44b67df..72fd952 100644 --- a/src/modules/Platform/components/Network/index.tsx +++ b/src/modules/Platform/components/Network/index.tsx @@ -16,7 +16,7 @@ const Network = (): JSX.Element => { const $apiData: ApiMainReply = useStore(apiData); return ( -
+
diff --git a/src/modules/Platform/components/Strategies/index.tsx b/src/modules/Platform/components/Strategies/index.tsx index e6c6fd9..9db3e59 100644 --- a/src/modules/Platform/components/Strategies/index.tsx +++ b/src/modules/Platform/components/Strategies/index.tsx @@ -41,7 +41,7 @@ const Strategies = (): JSX.Element => { }, []); return ( -
+
diff --git a/src/modules/Platform/index.tsx b/src/modules/Platform/index.tsx index b056a26..dcd2098 100644 --- a/src/modules/Platform/index.tsx +++ b/src/modules/Platform/index.tsx @@ -122,7 +122,7 @@ const Platform = (): JSX.Element => { ]; return ( -
+

Platform

diff --git a/src/modules/Users/components/Contests.tsx b/src/modules/Users/components/Contests.tsx index db5b6f8..e5eed91 100644 --- a/src/modules/Users/components/Contests.tsx +++ b/src/modules/Users/components/Contests.tsx @@ -1,4 +1,4 @@ -import { HeadingText } from "@ui"; +import { Badge, HeadingText } from "@ui"; import { formatTimestampToDate } from "../functions"; @@ -25,18 +25,13 @@ const Contests = ({ periodsData }: IContestsProps): JSX.Element => { {formatTimestampToDate(contest.end)}
-
- {!index ? "Ended" : index === 1 ? "Ongoing" : "Future"} -
+ text={!index ? "Ended" : index === 1 ? "Ongoing" : "Future"} + greater={true} + /> {!!contest.rewards.length && (
diff --git a/src/modules/Users/index.tsx b/src/modules/Users/index.tsx index 78b1ed1..76ee6cf 100644 --- a/src/modules/Users/index.tsx +++ b/src/modules/Users/index.tsx @@ -27,14 +27,14 @@ const Users = (): JSX.Element => { // const activeContestInfo = contests?.[currentPeriod]; // const pastContestInfo = contests?.[previousPeriod]; - const { currentPeriod, previousPeriod, nextPeriod } = - findAllValidPeriods(contests); + // nextPeriod + const { currentPeriod, previousPeriod } = findAllValidPeriods(contests); - const periodsData = [ - contests[previousPeriod as keyof YieldContest], - contests[currentPeriod as keyof YieldContest], - contests[nextPeriod as keyof YieldContest], - ]; + // const periodsData = [ + // contests[previousPeriod as keyof YieldContest], + // contests[currentPeriod as keyof YieldContest], + // contests[nextPeriod as keyof YieldContest], + // ]; const [activeContest, setActiveContest] = useState(TABLE_TYPES[1]); @@ -72,7 +72,7 @@ const Users = (): JSX.Element => { }, [activeContest, allContests]); return ( -
+
{/* periodsData */} = ({ state, text, greater = false }) => { + const buttonStyle = BUTTON_STYLES[state]; + const textStyle = TEXT_STYLES[state]; + + return ( +
+

+ {text} +

+
+ ); +}; + +export { Badge }; diff --git a/src/ui/index.ts b/src/ui/index.ts index ef1bde2..8d619d2 100644 --- a/src/ui/index.ts +++ b/src/ui/index.ts @@ -17,6 +17,7 @@ import { Checkbox } from "./Checkbox"; import { HeadingText } from "./HeadingText"; import { FieldValue } from "./FieldValue"; import { TableColumnSort } from "./TableColumnSort"; +import { Badge } from "./Badge"; import { AssetsSkeleton } from "./Skeletons/AssetsSkeleton"; import { ChartSkeleton } from "./Skeletons/ChartSkeleton"; @@ -47,4 +48,5 @@ export { HeadingText, FieldValue, TableColumnSort, + Badge, };