Skip to content

Commit

Permalink
Merge pull request #815 from invariant-labs/staging
Browse files Browse the repository at this point in the history
Update prod env
  • Loading branch information
wojciech-cichocki authored Dec 16, 2024
2 parents bc2437b + f14f3e3 commit 5a22886
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 12 deletions.
157 changes: 157 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@storybook/react": "^8.1.10",
"@storybook/react-vite": "^8.1.10",
"@storybook/test": "^8.1.10",
"@trunkio/launcher": "^1.3.4",
"@types/node": "^20.12.7",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export const Header: React.FC<IHeader> = ({
const routes = ['exchange', 'liquidity', 'portfolio', 'statistics']

const otherRoutesToHighlight: Record<string, RegExp[]> = {
liquidity: [/^newPosition\/*/, /^position\/*/],
liquidity: [/^liquidity\/*/],
exchange: [/^exchange\/*/],
portfolio: [/^portfolio\/*/]
portfolio: [/^portfolio\/*/, /^newPosition\/*/, /^position\/*/]
// creator: [/^creator\/*/]
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/LiquidityPoolList/LiquidityPoolList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ const LiquidityPoolList: React.FC<PoolListInterface> = ({
return data.sort((a, b) => (a.TVL === b.TVL ? a.volume - b.volume : a.TVL - b.TVL))
case SortTypePoolList.TVL_DESC:
return data.sort((a, b) => (a.TVL === b.TVL ? b.volume - a.volume : b.TVL - a.TVL))
// case SortType.APY_ASC:
// return data.sort((a, b) => a.apy - b.apy)
// case SortType.APY_DESC:
// return data.sort((a, b) => b.apy - a.apy)
case SortTypePoolList.APY_ASC:
return data.sort((a, b) => a.apy - b.apy)
case SortTypePoolList.APY_DESC:
return data.sort((a, b) => b.apy - a.apy)
default:
return data
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewPosition/NewPosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export const NewPosition: React.FC<INewPosition> = ({

return (
<Grid container className={classes.wrapper} direction='column'>
<Link to='/liquidity' style={{ textDecoration: 'none', maxWidth: 'fit-content' }}>
<Link to='/portfolio' style={{ textDecoration: 'none', maxWidth: 'fit-content' }}>
<Grid className={classes.back} container item alignItems='center'>
<img className={classes.backIcon} src={backIcon} alt='back' />
<Typography className={classes.backText}>Positions</Typography>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PositionDetails/PositionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const PositionDetails: React.FC<IProps> = ({
<Grid container className={classes.wrapperContainer} wrap='nowrap'>
<Grid className={classes.positionDetails} container item direction='column'>
<Grid className={classes.backContainer} container>
<Link to='/liquidity' style={{ textDecoration: 'none' }}>
<Link to='/portfolio' style={{ textDecoration: 'none' }}>
<Grid className={classes.back} container item alignItems='center'>
<img className={classes.backIcon} src={backIcon} alt='Back' />
<Typography className={classes.backText}>Positions</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export const SinglePositionWrapper: React.FC<IProps> = ({ id }) => {
if (position?.positionIndex === undefined && isClosingPosition) {
setIsClosingPosition(false)
dispatch(connectionActions.setTimeoutError(false))
navigate('/liquidity')
navigate('/portfolio')
} else {
dispatch(connectionActions.setTimeoutError(false))
onRefresh()
Expand Down Expand Up @@ -474,7 +474,7 @@ export const SinglePositionWrapper: React.FC<IProps> = ({ id }) => {
actions.closePosition({
positionIndex: position.positionIndex,
onSuccess: () => {
navigate('/liquidity')
navigate('/portfolio')
},
claimFarmRewards
})
Expand Down Expand Up @@ -569,7 +569,7 @@ export const SinglePositionWrapper: React.FC<IProps> = ({ id }) => {
className={classes.fullHeightContainer}>
<EmptyPlaceholder
desc='The position does not exist in your list! '
onAction={() => navigate('/liquidity')}
onAction={() => navigate('/portfolio')}
buttonName='Back to positions'
/>
</Grid>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/PortfolioPage/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const useStyles = makeStyles()(theme => {
}
},
innerContainer: {
maxWidth: 1072,
maxWidth: 1210,
minHeight: '70vh',

[theme.breakpoints.down('md')]: {
width: '100%'
Expand Down

0 comments on commit 5a22886

Please sign in to comment.