Skip to content

Commit cbd5b6f

Browse files
committed
fix(web): skeleton styling and small css fixes
1 parent 3510cf4 commit cbd5b6f

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export const lightTheme = {
3434
tintPurple: "#F4F0FA",
3535

3636
transitionSpeed: "0.25s",
37+
38+
skeletonBackground: "#EBEBEB",
39+
skeletonHighlight: "#F5F5F5",
3740
};
3841

3942
export const darkTheme = {
@@ -70,4 +73,7 @@ export const darkTheme = {
7073
tintPurple: "#2F0960",
7174

7275
transitionSpeed: "0.25s",
76+
77+
skeletonBackground: "#3A2270",
78+
skeletonHighlight: "#3E307C",
7379
};

web/src/utils/commify.ts

Lines changed: 2 additions & 0 deletions
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)