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