Small stuff
This commit is contained in:
@ -103,6 +103,7 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => {
|
||||
const avatarResponse = await getSignedUrl({
|
||||
bucket: 'avatars',
|
||||
url: result.data.avatar_url,
|
||||
transform: { width: 128, height: 128 },
|
||||
});
|
||||
|
||||
if (avatarResponse.success) {
|
||||
@ -138,7 +139,7 @@ export const AuthProvider = ({ children }: { children: ReactNode }) => {
|
||||
return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
|
||||
}
|
||||
|
||||
export function useAuth() {
|
||||
export const useAuth = () => {
|
||||
const context = useContext(AuthContext);
|
||||
if (context === undefined) {
|
||||
throw new Error('useAuth must be used within an AuthProvider');
|
||||
|
Reference in New Issue
Block a user