feat: show payment portal information

This commit is contained in:
Ali BARIN
2023-03-06 19:42:41 +00:00
parent dbeeb61cc5
commit 5e7b4bfe45
7 changed files with 73 additions and 7 deletions

View File

@@ -20,15 +20,16 @@ export const AutomatischInfoProvider = (
props: AutomatischInfoProviderProps
): React.ReactElement => {
const { children } = props;
const { data } = useQuery(GET_AUTOMATISCH_INFO);
const { data, loading } = useQuery(GET_AUTOMATISCH_INFO);
const isCloud = data?.getAutomatischInfo?.isCloud || false;
const isCloud = data?.getAutomatischInfo?.isCloud;
const value = React.useMemo(() => {
return {
isCloud,
loading
};
}, [isCloud]);
}, [isCloud, loading]);
return (
<AutomatischInfoContext.Provider value={value}>