2022-11-11 16:17:49 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import styled from '@emotion/styled';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import GeneralSettings from './general-settings';
|
|
|
|
import LocationSettings from './location-settings';
|
|
|
|
import SaveSettings from './save';
|
|
|
|
import { SettingsProvider } from './settings-context';
|
|
|
|
|
2022-12-22 13:36:25 +00:00
|
|
|
const SettingsWrapper = styled.form`
|
2022-11-11 16:17:49 +00:00
|
|
|
margin: 48px auto 0;
|
|
|
|
max-width: 1032px;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
|
|
|
|
@media ( min-width: 960px ) {
|
|
|
|
padding: 0 56px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const SettingsPage = () => {
|
|
|
|
return (
|
|
|
|
<SettingsWrapper id="local-pickup-settings">
|
|
|
|
<SettingsProvider>
|
|
|
|
<GeneralSettings />
|
|
|
|
<LocationSettings />
|
|
|
|
<SaveSettings />
|
|
|
|
</SettingsProvider>
|
|
|
|
</SettingsWrapper>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default SettingsPage;
|