From ed23617b23b32180a8e4e8eeb1781373696620d2 Mon Sep 17 00:00:00 2001 From: Ishaan Dey Date: Tue, 30 Apr 2024 23:34:44 -0400 Subject: [PATCH] avatar component --- frontend/components/dashboard/shared.tsx | 3 ++- frontend/components/editor/navbar/share.tsx | 5 +++-- frontend/components/ui/avatar.tsx | 23 +++++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 frontend/components/ui/avatar.tsx diff --git a/frontend/components/dashboard/shared.tsx b/frontend/components/dashboard/shared.tsx index cceb46d..e74174e 100644 --- a/frontend/components/dashboard/shared.tsx +++ b/frontend/components/dashboard/shared.tsx @@ -11,6 +11,7 @@ import { import Image from "next/image" import Button from "../ui/customButton" import { ChevronRight } from "lucide-react" +import Avatar from "../ui/avatar" export default function DashboardSharedWithMe({ sandboxes, @@ -51,7 +52,7 @@ export default function DashboardSharedWithMe({
-
+ Ishaan Dey
diff --git a/frontend/components/editor/navbar/share.tsx b/frontend/components/editor/navbar/share.tsx index e49d1b9..4f82b30 100644 --- a/frontend/components/editor/navbar/share.tsx +++ b/frontend/components/editor/navbar/share.tsx @@ -33,6 +33,7 @@ import { Loader2, UserPlus, X } from "lucide-react" import { useState } from "react" import { Sandbox } from "@/lib/types" import { Button } from "@/components/ui/button" +import Avatar from "@/components/ui/avatar" const formSchema = z.object({ email: z.string().email(), @@ -107,12 +108,12 @@ export default function ShareSandboxModal({
- Share Sandbox + Manage Access
-
+ Ishaan Dey