From 8082b7fbefcd8177e14cf9e46fe36df2defc3ef3 Mon Sep 17 00:00:00 2001 From: mikheykinnv Date: Mon, 8 Apr 2024 12:17:26 +0800 Subject: [PATCH] MSP-3134 add closeBtn component --- src/components/CloseBtn/close-btn.scss | 8 ++++++++ src/components/CloseBtn/index.tsx | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/components/CloseBtn/close-btn.scss create mode 100644 src/components/CloseBtn/index.tsx diff --git a/src/components/CloseBtn/close-btn.scss b/src/components/CloseBtn/close-btn.scss new file mode 100644 index 0000000..3f0e0fc --- /dev/null +++ b/src/components/CloseBtn/close-btn.scss @@ -0,0 +1,8 @@ +.close-btn { + border: none; + background: transparent; + padding: 5px !important; + position: absolute; + top: 8px; + right: 8px; +} \ No newline at end of file diff --git a/src/components/CloseBtn/index.tsx b/src/components/CloseBtn/index.tsx new file mode 100644 index 0000000..33f2441 --- /dev/null +++ b/src/components/CloseBtn/index.tsx @@ -0,0 +1,22 @@ +import {Button} from "antd"; +import './close-btn.scss' +interface CloseBtnPropsType { + ariaLabel?: string + onClick: () => void +} +const CloseBtn = ({onClick, ariaLabel}: CloseBtnPropsType) => { + return ( + + ); +}; + +export default CloseBtn; \ No newline at end of file