Project

General

Profile

« Previous | Next » 

Revision 75e86d83

Added by Ewoud Kohl van Wijngaarden over 1 year ago

Refs #35708 - Fix bad string interpolation example

Fixes: 0ed6bc5e1d8de01909293c50e62057ae22f16d1e

View differences:

webpack/stories/docs/creating-a-form.stories.mdx
onSubmit={(values, actions) =>
submitForm({
...otherProps,
successToast: response => __(`a custom success message with ${response.data.item}`),
errorToast: error => __(`a custom error message with ${error.response.data.error.item}`),
successToast: response => sprintf(__('a custom success message with %s'), response.data.item),
errorToast: error => sprintf(__('a custom error message with %s'), error.response.data.error.item),
})
}
>

Also available in: Unified diff