-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: copy && tx status * fix: history button position * fix: bridge warning && gas summary * fix: style adjustment * optimize: gas limit * fix: no native token no estimated gas limit * clean: global contexts * fix: tx table min height * optimize: token list hover bg * fix: default relay fee * fix: not show "should greater than 0" * feat: view tx history on NFT page * fix: invalid ERC20 * temp: mainnet env for preview * fix: before tx completed * fix: display the remaining seconds * refactor: clear dependencies * fix: standardise time * env: two env for bridge revision * fix: no connected || no data * fix: update copy * fix: header height and margin * fix: logo adapted for circular cropping * fix: UI improvements * fix: withdraw Step 1 and 2 should have same height * fix: show not connected&&wrong network * fix: copy of successful tx * optimize: max button logic * fix: UI details * fix: show L1 Data Fee when withdrawing
- Loading branch information
Showing
77 changed files
with
1,287 additions
and
1,288 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,58 @@ | ||
import { makeStyles } from "tss-react/mui" | ||
|
||
import { Alert as MuiAlert, SvgIcon } from "@mui/material" | ||
|
||
import { ReactComponent as ErrorSvg } from "@/assets/svgs/refactor/bridge-alert-error.svg" | ||
import { ReactComponent as SuccessSvg } from "@/assets/svgs/refactor/bridge-alert-success.svg" | ||
|
||
const useStyles = makeStyles()(theme => ({ | ||
root: { | ||
borderRadius: "1rem", | ||
padding: "1.2rem 1.6rem", | ||
}, | ||
standardError: { | ||
backgroundColor: "#FFE1DB", | ||
color: "#FF684B", | ||
fontWeight: 600, | ||
}, | ||
standardSuccess: { | ||
backgroundColor: "#DFFCF8", | ||
color: "#0F8E7E", | ||
fontWeight: 600, | ||
}, | ||
icon: { | ||
marginRight: 8, | ||
}, | ||
message: { | ||
fontFamily: "var(--onboard-font-family-normal) !important", | ||
lineHeight: 1.5, | ||
fontWeight: 600, | ||
}, | ||
})) | ||
|
||
const Alert = props => { | ||
const { children, ...restProps } = props | ||
|
||
const { classes } = useStyles() | ||
|
||
return ( | ||
<MuiAlert | ||
iconMapping={{ | ||
success: <SvgIcon sx={{ fontSize: "3.2rem" }} component={SuccessSvg} inheritViewBox></SvgIcon>, | ||
error: <SvgIcon sx={{ fontSize: "3.2rem" }} component={ErrorSvg} inheritViewBox></SvgIcon>, | ||
}} | ||
classes={{ | ||
root: classes.root, | ||
icon: classes.icon, | ||
standardError: classes.standardError, | ||
standardSuccess: classes.standardSuccess, | ||
message: classes.message, | ||
}} | ||
{...restProps} | ||
> | ||
{children} | ||
</MuiAlert> | ||
) | ||
} | ||
|
||
export default Alert |
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,11 @@ | ||
import TxHistoryDialog from "@/pages/new-bridge/TxHistoryDialog" | ||
|
||
const GlobalComponents = () => { | ||
return ( | ||
<> | ||
<TxHistoryDialog></TxHistoryDialog> | ||
</> | ||
) | ||
} | ||
|
||
export default GlobalComponents |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.