mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
support custom description
render
This commit is contained in:
parent
4388e93caa
commit
30d2c26f34
@ -200,9 +200,12 @@ export default class StepsForm extends React.Component {
|
|||||||
</antd.Tag>
|
</antd.Tag>
|
||||||
</div>
|
</div>
|
||||||
{current.description && <div className="description">
|
{current.description && <div className="description">
|
||||||
<Translation>
|
{typeof current.description === "function" ?
|
||||||
{t => t(current.description)}
|
React.createElement(current.description) :
|
||||||
</Translation>
|
<Translation>
|
||||||
|
{t => t(current.description)}
|
||||||
|
</Translation>
|
||||||
|
}
|
||||||
</div>}
|
</div>}
|
||||||
{this.state.renderStep}
|
{this.state.renderStep}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user