Skip to content

Commit 3e04076

Browse files
committed
feat: check payment
1 parent 9c2abfb commit 3e04076

File tree

3 files changed

+3295
-3123
lines changed

3 files changed

+3295
-3123
lines changed

apps/frontend/src/components/layout/check.payment.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ export const CheckPayment: FC<{
88
check: string;
99
mutate: () => void;
1010
children: ReactNode;
11+
}> = (props) => {
12+
if (!props.check) {
13+
return <>{props.children}</>;
14+
}
15+
return <CheckPaymentInner {...props} />;
16+
};
17+
18+
export const CheckPaymentInner: FC<{
19+
check: string;
20+
mutate: () => void;
21+
children: ReactNode;
1122
}> = (props) => {
1223
const [showLoader, setShowLoader] = useState(true);
1324
const fetch = useFetch();

apps/frontend/src/components/new-layout/layout.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const LayoutComponent = ({ children }: { children: ReactNode }) => {
7777
<MantineWrapper>
7878
<ToolTip />
7979
<Toaster />
80-
<CheckPayment check={searchParams.get('check')!} mutate={mutate}>
80+
<CheckPayment check={searchParams.get('check') || ''} mutate={mutate}>
8181
<ShowMediaBoxModal />
8282
<ShowLinkedinCompany />
8383
<MediaSettingsLayout />

0 commit comments

Comments
 (0)