-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changes: - removed unused files - updated counter button - updated the flag for signature on changes. * listing of available briding option * changes: - fix for the json schema for bridges available with function in network service to get the bridges - fix for the styling issues on available bridges listing - show the default bridge fee incase of bridge is not vailable in boba bridges for tokens * fix mobile screen layout for bridge * updated the bridge page background style along with secondary main color * minor tweeks * Update index.js * Update bridgeTransfer.js * style cleanup * Update DoExitStepFast.js * Update DoExitStep.js * re-enable exits * revert changes * revert changes * Update index.js * simplify bridge picking * formatting cleanup * support WAGMIv3 * changes: removed unused code and warning! (#147) * Add Boba Bubble Co-authored-by: CAPtheorem <[email protected]> (cherry picked from commit 4360a70)
- Loading branch information
Showing
35 changed files
with
701 additions
and
447 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
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
43 changes: 43 additions & 0 deletions
43
packages/boba/gateway/src/components/availableBridges/availableBridges.js
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,43 @@ | ||
import React, { useEffect, useState } from 'react' | ||
import * as S from './availableBridges.styles' | ||
|
||
import { Link, Typography } from '@mui/material' | ||
|
||
import networkService from 'services/networkService' | ||
|
||
function AvailableBridges({ token = null }) { | ||
|
||
const [ bridges, setBridges ] = useState([]) | ||
|
||
useEffect(() => { | ||
if (token) { | ||
let res = networkService.getTokenSpecificBridges(token.symbol) | ||
setBridges(res) | ||
} | ||
}, [ token ]) | ||
|
||
return <S.BridgesContainer> | ||
<S.LabelContainer> | ||
<Typography variant="body2"> | ||
Third party bridges | ||
</Typography> | ||
</S.LabelContainer> | ||
<S.Wrapper> | ||
{bridges.map((bridge) => { | ||
return <S.BridgeContent key={bridge.type}> | ||
<Link color="inherit" | ||
variant="body2" | ||
href={bridge.link} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
sx={{ textDecoration: 'none' }} | ||
> | ||
<Typography variant="body1" component="span" my={1}> {bridge.name}</Typography> | ||
</Link> | ||
</S.BridgeContent> | ||
})} | ||
</S.Wrapper> | ||
</S.BridgesContainer> | ||
} | ||
|
||
export default React.memo(AvailableBridges) |
36 changes: 36 additions & 0 deletions
36
packages/boba/gateway/src/components/availableBridges/availableBridges.styles.js
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 { Box, styled } from "@mui/material" | ||
|
||
export const BridgesContainer = styled(Box)(({ theme }) => ({ | ||
background: theme.palette.background.secondary, | ||
borderRadius: theme.palette.primary.borderRadius, | ||
border: theme.palette.primary.border, | ||
backdropFilter: 'blur(100px)', | ||
flex: 1, | ||
minHeight: 'fit-content', | ||
padding: '20px', | ||
width: '100%', | ||
})) | ||
|
||
export const Wrapper = styled(Box)(({ theme }) => ({ | ||
maxHeight: '300px', | ||
overflowY: 'scroll', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '5px' | ||
})) | ||
|
||
export const LabelContainer = styled(Box)(({ theme }) => ({ | ||
width: '100%', | ||
display: 'flex', | ||
justifyContent: 'space-around', | ||
gap: '10px', | ||
alignItems: 'center', | ||
margin: '10px 0px' | ||
})) | ||
|
||
export const BridgeContent = styled(Box)(({ theme, border }) => ({ | ||
borderRadius: theme.palette.primary.borderRadius, | ||
background: theme.palette.background.secondaryLight, | ||
padding: '5px 10px', | ||
border: theme.palette.primary.border, | ||
})) |
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 was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
packages/boba/gateway/src/components/carousel/Carousel.module.scss
This file was deleted.
Oops, something went wrong.
Empty file.
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
54 changes: 0 additions & 54 deletions
54
packages/boba/gateway/src/components/counterButton/CounterButton.module.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.