Skip to content

Commit f1ff5e6

Browse files
authored
Merge branch 'dev' into feat(web)/mobile-and-desktop-svg-banner-homepage
2 parents 214f51d + 9afac7c commit f1ff5e6

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

web/src/pages/Courts/CourtDetails/Stats.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const stats: IStat[] = [
8686
{
8787
title: "PNK redistributed",
8888
coinId: 0,
89-
getText: (data) => formatPNK(data?.paidPNK, 18),
89+
getText: (data) => formatPNK(data?.paidPNK),
9090
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.paidPNK)) * (coinPrice ?? 0)),
9191
color: "purple",
9292
icon: PNKRedistributedIcon,

web/src/pages/Courts/CourtDetails/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const StyledBreadcrumb = styled(Breadcrumb)`
3939
`;
4040

4141
const StyledBreadcrumbSkeleton = styled.div`
42-
margin-top: 16px;
42+
margin-bottom: 12px;
4343
`;
4444

4545
const CourtDetails: React.FC = () => {

web/src/styles/global-style.ts

+5
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,9 @@ export const GlobalStyle = createGlobalStyle`
9898
color: ${({ theme }) => theme.primaryText};
9999
}
100100
}
101+
102+
.react-loading-skeleton {
103+
--base-color: ${({ theme }) => theme.skeletonBackground};
104+
--highlight-color: ${({ theme }) => theme.skeletonHighlight};
105+
}
101106
`;

web/src/styles/themes.ts

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export const lightTheme = {
3535
tintPurple: "#F4F0FA",
3636

3737
transitionSpeed: "0.25s",
38+
39+
skeletonBackground: "#EBEBEB",
40+
skeletonHighlight: "#F5F5F5",
3841
};
3942

4043
export const darkTheme = {
@@ -72,4 +75,7 @@ export const darkTheme = {
7275
tintPurple: "#2F0960",
7376

7477
transitionSpeed: "0.25s",
78+
79+
skeletonBackground: "#3A2270",
80+
skeletonHighlight: "#3E307C",
7581
};

web/src/utils/commify.ts

+2
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ export function commify(value: string | number): string {
4848
}
4949
}
5050

51+
if (suffix === ".0") suffix = "";
52+
5153
return negative + formatted.join(",") + suffix;
5254
}

0 commit comments

Comments
 (0)