Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions packages/omgx/wallet-frontend/src/components/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ function Input({
variant,
newStyle = false,
allowUseAll = false,
allowExitAll = false,
onExitAll,
loading,
}) {

async function handlePaste() {
Expand Down Expand Up @@ -112,6 +115,21 @@ function Input({
</Button>
</Box>
)}
{allowExitAll && (
<Box>
<Button
onClick={onExitAll}
variant="small"
size="small"
sx={{margin: '10px 0px'}}
loading={loading}
triggerTime={new Date()}
tooltip={loading ? "Your transaction is still pending. Please wait for confirmation." : "Click here to bridge your funds to L1"}
>
Bridge All to L1
</Button>
</Box>
)}
</S.ActionsWrapper>
)}
{paste && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const InputWrapper = styled(Box)(({ theme }) => ({
export const ActionsWrapper = styled(Box)`
display: flex;
flex-direction: column;
align-items: flex-end;
align-items: center;
flex: 3;
margin-left: 10px;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ function DoExitStepFast({ handleClose, token }) {
maxValue={maxValue}
newStyle
variant="standard"
loading={loading}
onExitAll={doExitAll}
allowExitAll={true}
/>

{/*
<Button
onClick={doExitAll}
color='primary'
Expand All @@ -200,7 +203,7 @@ function DoExitStepFast({ handleClose, token }) {
size='small'
>
Bridge All to L1
</Button>
</Button> */}

{validValue && token && (
<Typography variant="body2" sx={{mt: 2}}>
Expand Down