feat: fix typescript errors

This commit is contained in:
Nevo David 2024-05-14 18:56:11 +07:00
parent a93af6d9f2
commit 3cc4ea22a9
4 changed files with 3 additions and 4 deletions

View File

@ -27,6 +27,6 @@ export const BillingComponent = () => {
}
return (
<MainBillingComponent tiers={tiers} sub={subscription?.subscription} />
<MainBillingComponent sub={subscription?.subscription} />
);
};

View File

@ -20,7 +20,7 @@ export const GithubOnboarding: FC = () => {
return { github, organizations };
}, []);
const { isLoading: isLoadingSettings, data: loadAll, mutate } = useSWR(
const { isLoading: isLoadingSettings, data: loadAll} = useSWR(
'load-all',
load
);
@ -31,7 +31,6 @@ export const GithubOnboarding: FC = () => {
return (
<GithubComponent
mutate={mutate}
github={loadAll.github}
organizations={loadAll.organizations}
/>

View File

@ -125,7 +125,6 @@ const ConnectComponent: FC<{
export const GithubComponent: FC<{
organizations: Array<{ login: string; id: string }>;
github: Array<{ id: string; login: string }>;
mutate: any;
}> = (props) => {
if (typeof window !== 'undefined' && window.opener) {
window.close();

File diff suppressed because one or more lines are too long