1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-25 00:11:36 +01:00

Improve Modal buttons in RebootButton component

This commit is contained in:
Aleksandr Gumroian 2024-10-04 16:37:21 +02:00
parent 85b207b1dd
commit 6a3dbbeee8
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -68,7 +68,12 @@ function RebootModal({ shown, setShown, onReboot }) {
<p>{_("Are you sure you want to restart the router?")}</p>
</ModalBody>
<ModalFooter>
<Button onClick={() => setShown(false)}>{_("Cancel")}</Button>
<Button
className="btn-secondary"
onClick={() => setShown(false)}
>
{_("Cancel")}
</Button>
<Button className="btn-danger" onClick={onReboot}>
{_("Confirm reboot")}
</Button>