Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3718 from cardano-foundation/fix/chart-missing-li…
Browse files Browse the repository at this point in the history
…ne-test

Fix/chart missing line test
  • Loading branch information
Sotatek-TaiTruong authored Jul 15, 2024
2 parents 20475c1 + 5a5c5b5 commit 27fdac2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
release-type: node
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
release-as: 1.5.0
release-as: 1.6.0
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "explorer",
"version": "1.5.0",
"version": "1.6.0",
"private": true,
"dependencies": {
"@cardano-foundation/cardano-connect-with-wallet": "^0.2.9",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Home/Trending/TransactionChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ const renderTooltipContent = (o: TooltipProps<string | number | (string | number
const Chart = ({ data, range }: { data: TransactionChartIF[] | null; range: Time }) => {
const theme = useTheme();
const { theme: themeMode } = useSelector(({ theme }: RootState) => theme);
const { isLanrgeScreen } = useScreen();

if (!data) return <></>;
return (
Expand All @@ -284,7 +285,7 @@ const Chart = ({ data, range }: { data: TransactionChartIF[] | null; range: Time
tickLine={{ stroke: themeMode === "light" ? theme.palette.secondary.light : theme.palette.secondary[800] }}
dataKey="date"
tickFormatter={(date: string) => formatX(date, range)}
minTickGap={15}
minTickGap={isLanrgeScreen ? 15 : 3}
/>
<YAxis
tick={{ fill: themeMode === "light" ? theme.palette.secondary.light : theme.palette.secondary[800] }}
Expand Down

0 comments on commit 27fdac2

Please sign in to comment.