1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-16 13:46:16 +02:00

Prompt as an optional element of ForisForm.

This commit is contained in:
Maciej Lenartowicz
2020-01-14 15:00:17 +01:00
parent e5cbbc9019
commit 75bfbb88ae
4 changed files with 10 additions and 4 deletions

View File

@ -17,10 +17,11 @@ WiFiSettings.propTypes = {
endpoint: PropTypes.string.isRequired,
resetEndpoint: PropTypes.string.isRequired,
hasGuestNetwork: PropTypes.bool,
hasPrompt: PropTypes.bool,
};
export function WiFiSettings({
ws, endpoint, resetEndpoint, hasGuestNetwork,
ws, endpoint, resetEndpoint, hasGuestNetwork, hasPrompt,
}) {
return (
<>
@ -33,6 +34,7 @@ export function WiFiSettings({
prepData={prepData}
prepDataToSubmit={prepDataToSubmit}
validator={validator}
hasPrompt={hasPrompt}
>
<WiFiForm hasGuestNetwork={hasGuestNetwork} />
</ForisForm>