This commit is contained in:
@@ -31,7 +31,7 @@ interface Props {
|
||||
}
|
||||
|
||||
const TimelineItemDrawer: React.FC<Props> = (props) => {
|
||||
const { storyItem, open, setOpen, handleDelete, handOption } = props;
|
||||
const { storyItem, open, setOpen, handleDelete, handOption, disableEdit } = props;
|
||||
const intl = useIntl();
|
||||
|
||||
const { data: imagesList, run } = useRequest(
|
||||
@@ -100,7 +100,7 @@ const TimelineItemDrawer: React.FC<Props> = (props) => {
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
footer={ {disableEdit ??
|
||||
footer={ disableEdit &&
|
||||
<div style={{ textAlign: 'right' }}>
|
||||
<Space>
|
||||
<Button
|
||||
@@ -133,7 +133,7 @@ const TimelineItemDrawer: React.FC<Props> = (props) => {
|
||||
<Button onClick={closeDrawer}>关闭</Button>
|
||||
</Space>
|
||||
</div>
|
||||
>}}
|
||||
}>
|
||||
<div style={{ padding: '0 24px' }}>
|
||||
<div style={{ marginBottom: '24px' }}>
|
||||
<h3>描述</h3>
|
||||
|
||||
Reference in New Issue
Block a user