feat(xo-web/modal#form): support an additional icon to the title (#3409)

This commit is contained in:
badrAZ 2018-09-13 16:58:03 +02:00 committed by Pierre Donias
parent 1ef205cb74
commit 5cf1ba41f3

View File

@ -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>,