Web: Client: Settings: use SaveCancelButtons
This commit is contained in:
parent
c62b18b68b
commit
59e0e53d19
@ -8,10 +8,10 @@ import Text from "@appserver/components/text";
|
||||
import Link from "@appserver/components/link";
|
||||
import toastr from "@appserver/components/toast/toastr";
|
||||
import { getLanguage } from "@appserver/common/utils";
|
||||
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`
|
||||
.page-subtitle {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.box {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
`;
|
||||
|
||||
const AdminMessage = (props) => {
|
||||
@ -133,11 +137,16 @@ const AdminMessage = (props) => {
|
||||
onClick={onSelectType}
|
||||
/>
|
||||
|
||||
<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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user