Skip to content

Commit

Permalink
👉Copy/pasting order when selecting paste #2416 (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasti authored May 21, 2024
1 parent 759a7be commit c6e97b3
Showing 1 changed file with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const CopyMnemonicsModal = (
const { dispatchOperation } = useContext(OperationContext);

const [selectedCopyMnemonicsType, setCopyMnemonicsType] = useState<string>(
CopyMnemonicsType.DeleteInsert
CopyMnemonicsType.Paste
);
const [isLoading, setIsLoading] = useState<boolean>(false);

Expand Down Expand Up @@ -156,26 +156,6 @@ const CopyMnemonicsModal = (
<Typography variant="h4">Choose paste option:</Typography>
</TextLayout>
<RadioLayout>
<RadioItemLayout>
<div style={{ alignItems: "top" }}>
<Radio
checked={
selectedCopyMnemonicsType ===
CopyMnemonicsType.DeleteInsert
}
onChange={() =>
setCopyMnemonicsType(CopyMnemonicsType.DeleteInsert)
}
/>
</div>
<div>
<Typography variant="h5">Delete/Insert</Typography>
<Typography variant="body_long">
Delete target mnemonics before copying. The mnemonics will
become equal on the source and target server afterwards.
</Typography>
</div>
</RadioItemLayout>
<RadioItemLayout>
<div style={{ alignItems: "top" }}>
<Radio
Expand All @@ -197,6 +177,25 @@ const CopyMnemonicsModal = (
</div>
</RadioItemLayout>
</RadioLayout>
<RadioItemLayout>
<div style={{ alignItems: "top" }}>
<Radio
checked={
selectedCopyMnemonicsType === CopyMnemonicsType.DeleteInsert
}
onChange={() =>
setCopyMnemonicsType(CopyMnemonicsType.DeleteInsert)
}
/>
</div>
<div>
<Typography variant="h5">Delete/Insert</Typography>
<Typography variant="body_long">
Delete target mnemonics before copying. The mnemonics will
become equal on the source and target server afterwards.
</Typography>
</div>
</RadioItemLayout>
</ContentLayout>
}
onSubmit={() => onSubmit()}
Expand Down

0 comments on commit c6e97b3

Please sign in to comment.