From bf23c01ac98ff03cfde61cbd516b9e28fa4b77df Mon Sep 17 00:00:00 2001 From: Paul-Joel Date: Tue, 19 Dec 2023 13:26:54 +0000 Subject: [PATCH] Remove redundant code --- .../src/components/modals/PasteModal/index.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/eq-author/src/components/modals/PasteModal/index.js b/eq-author/src/components/modals/PasteModal/index.js index ed2cd32d44..1625ebffe7 100644 --- a/eq-author/src/components/modals/PasteModal/index.js +++ b/eq-author/src/components/modals/PasteModal/index.js @@ -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`}; `; @@ -83,23 +77,23 @@ const PasteModal = ({ prevent pasting.

- + - Cancel - - + Confirm - +