-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:formbricks/oss.gg into auth-flow
- Loading branch information
Showing
12 changed files
with
172 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
import { DashboardHeader } from "@/components/header"; | ||
import { PostItem } from "@/components/post-item"; | ||
import { DashboardShell } from "@/components/shell"; | ||
import { Button } from "@/components/ui/button"; | ||
import { Button } from "@/components/ui/button" | ||
import { DashboardHeader } from "@/components/header" | ||
import { DashboardShell } from "@/components/shell" | ||
|
||
export default function DashboardLoading() { | ||
return ( | ||
<DashboardShell> | ||
<DashboardHeader heading="Posts" text="Create and manage posts."> | ||
<Button>Create</Button> | ||
</DashboardHeader> | ||
<div className="divide-border-200 divide-y rounded-md border"> | ||
<PostItem.Skeleton /> | ||
<PostItem.Skeleton /> | ||
<PostItem.Skeleton /> | ||
<PostItem.Skeleton /> | ||
<PostItem.Skeleton /> | ||
</div> | ||
</DashboardShell> | ||
); | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import { User } from "@prisma/client"; | ||
import { AvatarProps } from "@radix-ui/react-avatar"; | ||
import { User } from "@prisma/client" | ||
import { AvatarProps } from "@radix-ui/react-avatar" | ||
import { UserIcon } from "lucide-react" | ||
|
||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; | ||
import { UserIcon } from "lucide-react"; | ||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" | ||
|
||
interface UserAvatarProps extends AvatarProps { | ||
user: Pick<User, "image" | "name">; | ||
user: Pick<User, "avatarUrl" | "name"> | ||
} | ||
|
||
export function UserAvatar({ user, ...props }: UserAvatarProps) { | ||
return ( | ||
<Avatar {...props}> | ||
{user.image ? ( | ||
<AvatarImage alt="Picture" src={user.image} /> | ||
{user.avatarUrl ? ( | ||
<AvatarImage alt="Picture" src={user.avatarUrl} /> | ||
) : ( | ||
<AvatarFallback> | ||
<span className="sr-only">{user.name}</span> | ||
<UserIcon className="h-4 w-4" /> | ||
</AvatarFallback> | ||
)} | ||
</Avatar> | ||
); | ||
) | ||
} |
Oops, something went wrong.