Web: Client: Settings: use SaveCancelButtons

This commit is contained in:
Viktor Fomin 2022-04-12 11:33:35 +03:00
parent d61612fdf5
commit 523c79a3ec

View File

@ -7,10 +7,10 @@ import RadioButtonGroup from "@appserver/components/radio-button-group";
import Text from "@appserver/components/text";
import TextInput from "@appserver/components/text-input";
import toastr from "@appserver/components/toast/toastr";
import Buttons from "../sub-components/buttons";
import { LearnMoreWrapper } from "../StyledSecurity";
import { size } from "@appserver/components/utils/device";
import { saveToSessionStorage, getFromSessionStorage } from "../../../utils";
import SaveCancelButtons from "@appserver/components/save-cancel-buttons";
const MainContainer = styled.div`
width: 100%;
@ -19,6 +19,10 @@ const MainContainer = styled.div`
margin-top: 16px;
margin-bottom: 8px;
}
.save-cancel-buttons {
margin-top: 24px;
}
`;
const SessionLifetime = (props) => {
@ -79,11 +83,16 @@ const SessionLifetime = (props) => {
</>
)}
<Buttons
t={t}
showReminder={showReminder}
<SaveCancelButtons
className="save-cancel-buttons"
onSaveClick={onSaveClick}
onCancelClick={onCancelClick}
showReminder={showReminder}
reminderTest={t("YouHaveUnsavedChanges")}
saveButtonLabel={t("Common:SaveButton")}
cancelButtonLabel={t("Common:CancelButton")}
displaySettings={true}
hasScroll={false}
/>
</MainContainer>
);