style: transition wrapper height

This commit is contained in:
jialin
2024-06-06 16:07:25 +08:00
parent c5b41900df
commit 6a60561401
8 changed files with 119 additions and 90 deletions
@@ -1,6 +1,7 @@
import CopyButton from '@/components/copy-button';
import ModalFooter from '@/components/modal-footer';
import SealInput from '@/components/seal-form/seal-input';
import SealSelect from '@/components/seal-form/seal-select';
import { PageActionType } from '@/config/types';
import { SyncOutlined } from '@ant-design/icons';
import { Form, Modal } from 'antd';
@@ -12,6 +13,12 @@ type AddModalProps = {
onOk: () => void;
onCancel: () => void;
};
const expirationOptions = [
{ label: '1 Month', value: '1m' },
{ label: '6 Months', value: '6m' },
{ label: 'Never', value: 'never' }
];
const AddModal: React.FC<AddModalProps> = ({
title,
action,
@@ -55,6 +62,13 @@ const AddModal: React.FC<AddModalProps> = ({
}
></SealInput.Input>
</Form.Item>
<Form.Item name="expiration" rules={[{ required: true }]}>
<SealSelect
label="Expiration"
required
options={expirationOptions}
></SealSelect>
</Form.Item>
</Form>
</Modal>
);