mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
fix: fix demo filPath (#41488)
This commit is contained in:
parent
2a9f5ea1ab
commit
5b44e577a5
@ -102,7 +102,7 @@ const CodePreviewer: React.FC<IPreviewerProps> = (props) => {
|
||||
style,
|
||||
compact,
|
||||
background,
|
||||
filePath,
|
||||
filename,
|
||||
version,
|
||||
clientOnly,
|
||||
} = props;
|
||||
@ -399,7 +399,7 @@ createRoot(document.getElementById('container')).render(<Demo />);
|
||||
{localizedTitle}
|
||||
</a>
|
||||
</Tooltip>
|
||||
<EditButton title={<FormattedMessage id="app.content.edit-demo" />} filename={filePath} />
|
||||
<EditButton title={<FormattedMessage id="app.content.edit-demo" />} filename={filename} />
|
||||
</div>
|
||||
<div className="code-box-description">{introChildren}</div>
|
||||
<Space wrap size="middle" className="code-box-actions">
|
||||
|
Loading…
Reference in New Issue
Block a user