Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Joel committed Dec 19, 2023
1 parent 2f3d7fb commit bf23c01
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions eq-author/src/components/modals/PasteModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ const Title = styled.h2`

const Message = styled.div``;

const StyledButtonCancel = styled(Button)`
background-color: ${colors.grey15};
margin-right: ${(props) => props.margin && `0.5em`};
`;

const StyledButtonConfirm = styled(Button)`
background-color: ${colors.leafGreen};
const StyledButton = styled(Button)`
margin-right: ${(props) => props.margin && `0.5em`};
`;

Expand Down Expand Up @@ -83,23 +77,23 @@ const PasteModal = ({
prevent pasting.
</p>
</Message>
<Theme>
<Theme themeName={"onsLegacyFont"}>
<ButtonContainer>
<StyledButtonCancel
<StyledButton
variant="secondary"
margin
onClick={handleCancel}
data-test="paste-modal-cancel"
>
Cancel
</StyledButtonCancel>
<StyledButtonConfirm
</StyledButton>
<StyledButton
variant="primary"
onClick={handleConfirm}
data-test="paste-modal-confirm"
>
Confirm
</StyledButtonConfirm>
</StyledButton>
</ButtonContainer>
</Theme>
</StyledModal>
Expand Down

0 comments on commit bf23c01

Please sign in to comment.