feat: check payment
This commit is contained in:
parent
9c2abfb47f
commit
3e04076d5d
|
|
@ -8,6 +8,17 @@ export const CheckPayment: FC<{
|
|||
check: string;
|
||||
mutate: () => void;
|
||||
children: ReactNode;
|
||||
}> = (props) => {
|
||||
if (!props.check) {
|
||||
return <>{props.children}</>;
|
||||
}
|
||||
return <CheckPaymentInner {...props} />;
|
||||
};
|
||||
|
||||
export const CheckPaymentInner: FC<{
|
||||
check: string;
|
||||
mutate: () => void;
|
||||
children: ReactNode;
|
||||
}> = (props) => {
|
||||
const [showLoader, setShowLoader] = useState(true);
|
||||
const fetch = useFetch();
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export const LayoutComponent = ({ children }: { children: ReactNode }) => {
|
|||
<MantineWrapper>
|
||||
<ToolTip />
|
||||
<Toaster />
|
||||
<CheckPayment check={searchParams.get('check')!} mutate={mutate}>
|
||||
<CheckPayment check={searchParams.get('check') || ''} mutate={mutate}>
|
||||
<ShowMediaBoxModal />
|
||||
<ShowLinkedinCompany />
|
||||
<MediaSettingsLayout />
|
||||
|
|
|
|||
6441
pnpm-lock.yaml
6441
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue