Skip to content

Commit

Permalink
Fix misc React errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Apr 24, 2023
1 parent a57397c commit a0c889a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Chart/CustomTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const renderTooltipItems = (
let ignoredIndex = 0;

return (
<Grid container xs={12} padding={"10px"}>
<Grid container padding={"10px"}>
{renderDate(payload[0])}
{payload
.map((item, index) => {
Expand Down
5 changes: 2 additions & 3 deletions src/components/Chart/ExpandedChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ const ExpandedChart = ({
{subgraphQueryUrl && (
<Grid item xs textAlign="right" marginRight="15px">
<Link href={subgraphQueryUrl} target="_blank" rel="noopener noreferrer">
<Tooltip message={`Open Subgraph Query`}>
<SvgIcon component={GraphLogo} viewBox="0 0 100 100" style={{ width: "16px", height: "16px" }} />
</Tooltip>
<Tooltip message={`Open Subgraph Query`} />
<SvgIcon component={GraphLogo} viewBox="0 0 100 100" style={{ width: "16px", height: "16px" }} />
</Link>
</Grid>
)}
Expand Down
10 changes: 5 additions & 5 deletions src/views/TreasuryDashboard/components/Graph/ChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ export const ChartCard: React.FC<ChartCardProps> = props => {
<Grid item>
{props.subgraphQueryUrl && (
<Link href={props.subgraphQueryUrl} target="_blank" rel="noopener noreferrer">
<Tooltip message={`Open Subgraph Query`}>
<SvgIcon component={GraphLogo} viewBox="0 0 100 100" style={{ width: "16px", height: "16px" }} />
</Tooltip>
<Tooltip message={`Open Subgraph Query`} />
<SvgIcon component={GraphLogo} viewBox="0 0 100 100" style={{ width: "16px", height: "16px" }} />
</Link>
)}
</Grid>
<Grid item>
{props.handleOpenExpandedChart && (
<Tooltip message={`Open in Expanded View`}>
<>
<Tooltip message={`Open in Expanded View`} />
<SvgIcon
component={Fullscreen}
color="primary"
onClick={props.handleOpenExpandedChart}
style={{ fontSize: "1rem", cursor: "pointer" }}
/>
</Tooltip>
</>
)}
</Grid>
</Grid>
Expand Down

0 comments on commit a0c889a

Please sign in to comment.