{
+ const intl = useIntl();
+ const navigate = useNavigator();
+ const notify = useNotifier();
+
+ const { data, loading } = useOrderSettingsQuery({});
+
+ const [
+ orderSettingsUpdate,
+ orderSettingsUpdateOpts
+ ] = useOrderSettingsUpdateMutation({});
+
+ const handleSubmit = async (data: OrderSettingsFormData) => {
+ const result = await orderSettingsUpdate({
+ variables: {
+ input: data
+ }
+ });
+
+ const errors = result.data?.orderSettingsUpdate.errors;
+ if (errors.length) {
+ notify({
+ status: "error",
+ text: intl.formatMessage(commonMessages.somethingWentWrong)
+ });
+ return errors;
+ }
+
+ notify({
+ status: "success",
+ text: intl.formatMessage(commonMessages.savedChanges)
+ });
+ return [];
+ };
+
+ const handleBack = () => navigate(orderListUrl());
+
+ return (
+
+ );
+};
+export default OrderSettings;
diff --git a/src/pages/types/PageCreate.ts b/src/pages/types/PageCreate.ts
index 320ba975b..abc82deaf 100644
--- a/src/pages/types/PageCreate.ts
+++ b/src/pages/types/PageCreate.ts
@@ -67,6 +67,7 @@ export interface PageCreate_pageCreate_page_pageType {
id: string;
name: string;
attributes: (PageCreate_pageCreate_page_pageType_attributes | null)[] | null;
+ message: string | null;
}
export interface PageCreate_pageCreate_page_metadata {
diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap
index 24c0a8ee2..ceebc185b 100644
--- a/src/storybook/__snapshots__/Stories.test.ts.snap
+++ b/src/storybook/__snapshots__/Stories.test.ts.snap
@@ -9244,6 +9244,70 @@ exports[`Storyshots Generics / Square Button default 1`] = `
`;
+exports[`Storyshots Generics / Status Chip alert 1`] = `
+
+`;
+
+exports[`Storyshots Generics / Status Chip error 1`] = `
+
+`;
+
+exports[`Storyshots Generics / Status Chip neutral 1`] = `
+
+`;
+
+exports[`Storyshots Generics / Status Chip success 1`] = `
+
+`;
+
exports[`Storyshots Generics / StatusLabel when error 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+