Skip to content

Commit

Permalink
fix: hide original csv download menu
Browse files Browse the repository at this point in the history
  • Loading branch information
TopETH committed Dec 1, 2023
1 parent a8976a7 commit d0c7a05
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/account/AccounDelegateHistoryChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ const spinnerContainer = css`
justify-content: center;
`;

const hideCSVDownload = css`
.exportCSV {
display: none;
}
`;

export type AccounDelegateHistoryChartProps = {
account: string;
delegateHistory: AccountDelegateHistoryResponse;
Expand Down Expand Up @@ -163,6 +169,7 @@ export const AccounDelegateHistoryChart = (
</div>
) : (
<Chart
css={hideCSVDownload}
height={400}
series={delegates}
options={{
Expand Down Expand Up @@ -291,8 +298,8 @@ export const AccounDelegateHistoryChart = (
lastDay.setDate(lastDay.getDate() + 1);
if (
day.getFullYear() === lastDay.getFullYear() &&
day.getMonth() === lastDay.getMonth() &&
day.getDate() === lastDay.getDate()
day.getMonth() === lastDay.getMonth() &&
day.getDate() === lastDay.getDate()
)
return "Now";
const options: Intl.DateTimeFormatOptions = {
Expand Down

0 comments on commit d0c7a05

Please sign in to comment.