feat(xo-web/modal#form): support an additional icon to the title (#3409)
This commit is contained in:
parent
1ef205cb74
commit
5cf1ba41f3
@ -281,7 +281,7 @@ class FormModal extends BaseComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const form = ({ body, defaultValue, title, size }) => {
|
export const form = ({ body, defaultValue, icon, title, size }) => {
|
||||||
const formId = generateRandomId()
|
const formId = generateRandomId()
|
||||||
const buttons = [
|
const buttons = [
|
||||||
{
|
{
|
||||||
@ -294,9 +294,10 @@ export const form = ({ body, defaultValue, title, size }) => {
|
|||||||
modal(
|
modal(
|
||||||
<GenericModal
|
<GenericModal
|
||||||
buttons={buttons}
|
buttons={buttons}
|
||||||
title={title}
|
icon={icon}
|
||||||
reject={reject}
|
reject={reject}
|
||||||
resolve={resolve}
|
resolve={resolve}
|
||||||
|
title={title}
|
||||||
>
|
>
|
||||||
<FormModal body={body} defaultValue={defaultValue} formId={formId} />
|
<FormModal body={body} defaultValue={defaultValue} formId={formId} />
|
||||||
</GenericModal>,
|
</GenericModal>,
|
||||||
|
Loading…
Reference in New Issue
Block a user