feat: show payment portal information
This commit is contained in:
@@ -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}>
|
||||
|
Reference in New Issue
Block a user