(feat): migrate ttp to mtp
(wip): crypto migration
This commit is contained in:
parent
4e69b8ef77
commit
930663d495
30 changed files with 559 additions and 749 deletions
|
|
@ -78,7 +78,7 @@ export default function InviteButton({
|
|||
});
|
||||
}}
|
||||
>
|
||||
{user.display}
|
||||
{user.Display}
|
||||
</Button>
|
||||
)}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@ export default function InvitePopup({
|
|||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogContent className="flex flex-col gap-5 items-center justify-center w-65 h-80">
|
||||
<Avatar className="size-30">
|
||||
<AvatarImage src={user.avatar} />
|
||||
<AvatarImage src={user.Avatar} />
|
||||
<AvatarFallback className="text-5xl">
|
||||
{user.display.slice(0, 2).toUpperCase()}
|
||||
{user.Display.slice(0, 2).toUpperCase()}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
<p className="text-xl font-medium">{user.display}</p>
|
||||
<p className="text-xl font-medium">{user.Display}</p>
|
||||
<div className="w-full flex justify-center gap-3">
|
||||
<Button
|
||||
className="w-14 h-14"
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ function Overlay({
|
|||
</TransparentButton>
|
||||
)}
|
||||
<TransparentButton>
|
||||
<p className="text-sm">{user.display}</p>
|
||||
<p className="text-sm">{user.Display}</p>
|
||||
</TransparentButton>
|
||||
</div>
|
||||
);
|
||||
|
|
@ -209,14 +209,14 @@ export default function Base({
|
|||
}, [participant, get]);
|
||||
|
||||
useEffect(() => {
|
||||
if (type !== "user" || !user?.avatar) {
|
||||
if (type !== "user" || !user?.Avatar) {
|
||||
setAvatarBackgroundColor(undefined);
|
||||
return;
|
||||
}
|
||||
|
||||
let active = true;
|
||||
|
||||
void getAverageImageColor(user.avatar).then((color) => {
|
||||
void getAverageImageColor(user.Avatar).then((color) => {
|
||||
if (active) {
|
||||
setAvatarBackgroundColor(color);
|
||||
}
|
||||
|
|
@ -225,7 +225,7 @@ export default function Base({
|
|||
return () => {
|
||||
active = false;
|
||||
};
|
||||
}, [type, user?.avatar]);
|
||||
}, [type, user?.Avatar]);
|
||||
|
||||
// Avatar calc
|
||||
const currentCard = useRef<HTMLDivElement>(null);
|
||||
|
|
@ -342,13 +342,13 @@ export default function Base({
|
|||
height: "32cqh",
|
||||
}}
|
||||
>
|
||||
<AvatarImage src={user.avatar} />
|
||||
<AvatarImage src={user.Avatar} />
|
||||
<AvatarFallback
|
||||
style={{
|
||||
fontSize: "11cqh",
|
||||
}}
|
||||
>
|
||||
{user.display.slice(0, 2).toUpperCase()}
|
||||
{user.Display.slice(0, 2).toUpperCase()}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -75,9 +75,9 @@ export default function TopBar() {
|
|||
<TooltipTrigger
|
||||
render={
|
||||
<Avatar className="size-7">
|
||||
<AvatarImage src={user.avatar} />
|
||||
<AvatarImage src={user.Avatar} />
|
||||
<AvatarFallback className="text-xs">
|
||||
{user.display.slice(0, 2).toUpperCase()}
|
||||
{user.Display.slice(0, 2).toUpperCase()}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
}
|
||||
|
|
@ -86,7 +86,7 @@ export default function TopBar() {
|
|||
side="bottom"
|
||||
portalProps={{ container: portalContainer }}
|
||||
>
|
||||
{user.display}
|
||||
{user.Display}
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue