-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: refactor graph component hierarchy * feat: initial component for graph time range selector * refactor: moved global style for ToggleButton to a styled component * fix: enforce a selection * fix: styles * fix: bad merge * refactor: move data fetching to graph containers * feat: handle selected time range in parent component * feat: initial hookup of time range selector * feat: removed 'Max' time selection from graphs * feat: add in loading/error states * feat: clean up graph styles * feat: add supply rate * chore: remove log * chore: add circle over supply rate * chore: supply APR logic * chore: show time/legend when loading * chore: test error state * chore: shorter graphs * fix: build * chore: remove unused component * chore: remove time selector from IRM graph * chore: add style changes to graphs * chore: i18n * chore: bump material and add react-transition-group * chore: more style updates * chore: more styling * feat: add interest rate strategy link (#1124) * feat: add link to interest rate strategy * fix: remove unnecessary typography tag * chore: i18n * chore: more styling * chore: cleanup * chore: removed TODO comment * fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range * fix: remove console logs * fix: remove supply APY from interest rate model graph (#1160) * chore: log cleanup * chore: show % * fix: remove horizontal divider for util rate * chore: update eslintignore * fix: remove unused file * fix: re-render issue with loading spinner * chore: remove unused package * chore: hide charts for v3 and comment about bug * chore: remove log * feat: temporarily disable charts for polygon v2 Co-authored-by: Mark Grothe <[email protected]> Co-authored-by: Andrew Schmidt <[email protected]>
- Loading branch information
1 parent
6f2dfdb
commit 81cfe94
Showing
26 changed files
with
1,061 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
scripts/ | ||
# General Ignores | ||
.gitignore | ||
.prettierignore | ||
.eslintcache | ||
node_modules/ | ||
public/ | ||
|
||
# Artifacts | ||
.next/ | ||
out/ | ||
src/locales/ | ||
|
||
# IDE | ||
.vscode | ||
|
||
# Specific Ignores | ||
*.svg | ||
*.ico | ||
*.json | ||
*.md | ||
*.log | ||
*.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { styled, ToggleButton, ToggleButtonProps } from '@mui/material'; | ||
import React from 'react'; | ||
|
||
const CustomToggleButton = styled(ToggleButton)<ToggleButtonProps>(({ theme }) => ({ | ||
border: '0px', | ||
flex: 1, | ||
backgroundColor: '#383D51', | ||
borderRadius: '4px', | ||
|
||
'&.Mui-selected, &.Mui-selected:hover': { | ||
backgroundColor: '#FFFFFF', | ||
borderRadius: '4px !important', | ||
}, | ||
|
||
'&.Mui-selected, &.Mui-disabled': { | ||
zIndex: 100, | ||
height: '100%', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
|
||
'.MuiTypography-subheader1': { | ||
background: theme.palette.gradients.aaveGradient, | ||
backgroundClip: 'text', | ||
textFillColor: 'transparent', | ||
}, | ||
'.MuiTypography-secondary14': { | ||
background: theme.palette.gradients.aaveGradient, | ||
backgroundClip: 'text', | ||
textFillColor: 'transparent', | ||
}, | ||
}, | ||
})) as typeof ToggleButton; | ||
|
||
export default function StyledToggleButton(props: ToggleButtonProps) { | ||
return <CustomToggleButton {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { styled, ToggleButtonGroup, ToggleButtonGroupProps } from '@mui/material'; | ||
|
||
const CustomToggleGroup = styled(ToggleButtonGroup)<ToggleButtonGroupProps>({ | ||
backgroundColor: '#383D51', | ||
border: '1px solid rgba(235, 235, 237, 0.12)', | ||
padding: '4px', | ||
}) as typeof ToggleButtonGroup; | ||
|
||
export default function StyledToggleGroup(props: ToggleButtonGroupProps) { | ||
return <CustomToggleGroup {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.