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 (
+
+ );
+};
+
+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,
};