feat: first
This commit is contained in:
8
src/components/Modal/Modal.tsx
Normal file
8
src/components/Modal/Modal.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import React, { FC } from 'react'
|
||||
import { Modal as AntdModal, ModalProps as AntdModalProps } from 'antd'
|
||||
import { ReactComponent as CloseIcon } from '../../icons/close.svg'
|
||||
|
||||
export type ModalProps = Omit<AntdModalProps, 'footer' | 'closeIcon' | 'title' | 'okText' | 'okType' | 'okButtonProps' | 'cancelText' | 'cancelButtonProps'>
|
||||
export const Modal: FC<ModalProps> = (props) => {
|
||||
return <AntdModal centered {...props} footer={null} closeIcon={<CloseIcon />} />
|
||||
}
|
||||
1
src/components/Modal/index.ts
Normal file
1
src/components/Modal/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './Modal'
|
||||
Reference in New Issue
Block a user