From 6171b1c97e00a954d87aaf6848d7889b47d22a7b Mon Sep 17 00:00:00 2001 From: eenvin Date: Fri, 5 Jan 2024 18:03:30 +0100 Subject: [PATCH] feat(proposals): add navigation button on iframe modal --- public/assets/svg/left-arrow.svg | 40 +++++++++++++++++++++++++++++ src/components/base/Modal/index.jsx | 14 +++++++++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 public/assets/svg/left-arrow.svg diff --git a/public/assets/svg/left-arrow.svg b/public/assets/svg/left-arrow.svg new file mode 100644 index 0000000..1df807b --- /dev/null +++ b/public/assets/svg/left-arrow.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/base/Modal/index.jsx b/src/components/base/Modal/index.jsx index 06861e1..d103ad1 100644 --- a/src/components/base/Modal/index.jsx +++ b/src/components/base/Modal/index.jsx @@ -3,6 +3,8 @@ import { Modal } from 'react-bootstrap' import styled from 'styled-components' import Text from '../Text' +import Button from '../Button' +import Icon from '../Icon' const StyledModalTitle = styled(Text)` font-size: 20px; @@ -33,10 +35,20 @@ const StyledHeader = styled(Modal.Header)` } ` -const MyModal = ({ show, title, children, size = 'lg', bodyStyle, onClose }) => { +const StyledButton = styled(Button)` + width: 50px; + margin-right: 10px; +` + +const MyModal = ({ show, title, children, size = 'lg', bodyStyle, onClose, onClick, hasButton = false }) => { return ( + {hasButton ? ( + + + + ) : null} {title} {children}