Skip to content

Commit

Permalink
Merge branch 'dev' into feat(web)/mobile-and-desktop-svg-banner-homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru authored Sep 1, 2023
2 parents 214f51d + 9afac7c commit f1ff5e6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/pages/Courts/CourtDetails/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const stats: IStat[] = [
{
title: "PNK redistributed",
coinId: 0,
getText: (data) => formatPNK(data?.paidPNK, 18),
getText: (data) => formatPNK(data?.paidPNK),
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.paidPNK)) * (coinPrice ?? 0)),
color: "purple",
icon: PNKRedistributedIcon,
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Courts/CourtDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const StyledBreadcrumb = styled(Breadcrumb)`
`;

const StyledBreadcrumbSkeleton = styled.div`
margin-top: 16px;
margin-bottom: 12px;
`;

const CourtDetails: React.FC = () => {
Expand Down
5 changes: 5 additions & 0 deletions web/src/styles/global-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,9 @@ export const GlobalStyle = createGlobalStyle`
color: ${({ theme }) => theme.primaryText};
}
}
.react-loading-skeleton {
--base-color: ${({ theme }) => theme.skeletonBackground};
--highlight-color: ${({ theme }) => theme.skeletonHighlight};
}
`;
6 changes: 6 additions & 0 deletions web/src/styles/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const lightTheme = {
tintPurple: "#F4F0FA",

transitionSpeed: "0.25s",

skeletonBackground: "#EBEBEB",
skeletonHighlight: "#F5F5F5",
};

export const darkTheme = {
Expand Down Expand Up @@ -72,4 +75,7 @@ export const darkTheme = {
tintPurple: "#2F0960",

transitionSpeed: "0.25s",

skeletonBackground: "#3A2270",
skeletonHighlight: "#3E307C",
};
2 changes: 2 additions & 0 deletions web/src/utils/commify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ export function commify(value: string | number): string {
}
}

if (suffix === ".0") suffix = "";

return negative + formatted.join(",") + suffix;
}

0 comments on commit f1ff5e6

Please sign in to comment.