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 buttons = [
|
||||
{
|
||||
@ -294,9 +294,10 @@ export const form = ({ body, defaultValue, title, size }) => {
|
||||
modal(
|
||||
<GenericModal
|
||||
buttons={buttons}
|
||||
title={title}
|
||||
icon={icon}
|
||||
reject={reject}
|
||||
resolve={resolve}
|
||||
title={title}
|
||||
>
|
||||
<FormModal body={body} defaultValue={defaultValue} formId={formId} />
|
||||
</GenericModal>,
|
||||
|
Loading…
Reference in New Issue
Block a user