feat: add github oauth

This commit is contained in:
2024-11-17 17:54:41 +07:00
parent c8e61ed4aa
commit a6cc450ea7
22 changed files with 419 additions and 74 deletions
+25
View File
@@ -0,0 +1,25 @@
import React from "react";
import { GetProps, Avatar as BaseAvatar } from "tamagui";
import Icons from "./icons";
type AvatarProps = GetProps<typeof BaseAvatar> & {
src?: string;
$image?: GetProps<typeof BaseAvatar.Image>;
};
const Avatar = ({ src, $image, ...props }: AvatarProps) => {
return (
<BaseAvatar circular {...props}>
{src ? <BaseAvatar.Image src={src} {...$image} /> : null}
<BaseAvatar.Fallback
bg="$blue4"
alignItems="center"
justifyContent="center"
>
<Icons name="account" size={16} />
</BaseAvatar.Fallback>
</BaseAvatar>
);
};
export default Avatar;