mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44: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>
|
||||
</div>
|
||||
{current.description && <div className="description">
|
||||
<Translation>
|
||||
{t => t(current.description)}
|
||||
</Translation>
|
||||
{typeof current.description === "function" ?
|
||||
React.createElement(current.description) :
|
||||
<Translation>
|
||||
{t => t(current.description)}
|
||||
</Translation>
|
||||
}
|
||||
</div>}
|
||||
{this.state.renderStep}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user