Remove use-toast.tsx, refactor auth methods, and update UI components
This commit removes the redundant `use-toast.tsx` file and refactors the authentication methods in `personal-accounts-server-actions.ts` to enhance service integration and data handling. UI components like `LanguageDropdownSwitcher` and `site-header-account-section.tsx` have been refined for better readability. Changes in the `config.tsx` file aim to improve the overall code cleanliness. The `schema.sql` file under migrations was updated to cascade delete for 'invited_by' reference.
This commit is contained in:
@@ -26,9 +26,7 @@ export function SiteHeaderAccountSection(
|
||||
return <AuthButtons />;
|
||||
}
|
||||
|
||||
return (
|
||||
<SuspendedPersonalAccountDropdown session={props.session} />
|
||||
);
|
||||
return <SuspendedPersonalAccountDropdown session={props.session} />;
|
||||
}
|
||||
|
||||
function SuspendedPersonalAccountDropdown(props: { session: Session | null }) {
|
||||
|
||||
@@ -82,4 +82,4 @@
|
||||
]
|
||||
},
|
||||
"prettier": "@kit/prettier-config"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{}
|
||||
{}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{}
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user