-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Lisää 'likainen lomake' varoitukset tabien-välillä siirtymiseen…
… (nähtävilläolo, hyväksymispäätös) (#358)
- Loading branch information
Showing
11 changed files
with
250 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { DialogActions, DialogContent } from "@mui/material"; | ||
import React, { FC } from "react"; | ||
import Button from "./button/Button"; | ||
import HassuDialog from "./HassuDialog"; | ||
import HassuStack from "./layout/HassuStack"; | ||
|
||
const TallentamattomiaMuutoksiaDialog: FC<{ open: boolean; handleClickClose: () => void; handleClickOk: () => void }> = ({ | ||
open, | ||
handleClickClose, | ||
handleClickOk, | ||
}) => { | ||
return ( | ||
<HassuDialog title="Tallentamattomia muutoksia" open={open} onClose={handleClickClose}> | ||
<DialogContent> | ||
<HassuStack> | ||
<p> | ||
Olet tehnyt sivulle muutoksia, joita ei ole tallennettu. Tehdyt muutokset menetetään, jos poistut sivulta. Haluatko poistua | ||
tallentamatta? | ||
</p> | ||
</HassuStack> | ||
</DialogContent> | ||
<DialogActions> | ||
<Button primary onClick={handleClickOk}> | ||
Hylkää muutokset ja siirry | ||
</Button> | ||
<Button onClick={handleClickClose}>Peruuta</Button> | ||
</DialogActions> | ||
</HassuDialog> | ||
); | ||
}; | ||
|
||
export default TallentamattomiaMuutoksiaDialog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.