feat: check payment

This commit is contained in:
Nevo David 2025-12-22 17:42:40 +07:00
parent 9c2abfb47f
commit 3e04076d5d
3 changed files with 3313 additions and 3141 deletions

View File

@ -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();

View File

@ -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 />

File diff suppressed because it is too large Load Diff