improve share logic

This commit is contained in:
Ishaan Dey
2024-05-01 08:20:08 -04:00
parent 1066638e92
commit a084ecd6c7
6 changed files with 23 additions and 9 deletions

View File

@ -31,7 +31,6 @@ export default async function AppAuthLayout({
console.log(res)
} else {
// user already exists in db
console.log("user exists already.", dbUserJSON)
}
return <>{children}</>

View File

@ -76,15 +76,15 @@
}
.gradient-button-bg {
background: radial-gradient(circle at top, #a5b4fc -10%, #3730a3 30%); /* violet 300 -> 800 */
background: radial-gradient(circle at top, #a5b4fc 0%, #3730a3 50%); /* violet 300 -> 800 */
}
.gradient-button {
background: radial-gradient(circle at bottom, #312e81 -20%, hsl(0 0% 3.9%) 50%); /* violet 900 -> bg */
background: radial-gradient(circle at bottom, #312e81 -10%, hsl(0 0% 3.9%) 50%); /* violet 900 -> bg */
}
.gradient-button-bg > div:hover {
background: radial-gradient(circle at bottom, #312e81 -20%, hsl(0 0% 3.9%) 100%); /* violet 900 -> bg */
background: radial-gradient(circle at bottom, #312e81 -10%, hsl(0 0% 3.9%) 80%); /* violet 900 -> bg */
}
.gradient-project-card-bg {

View File

@ -33,7 +33,7 @@ export default function DashboardSharedWithMe({
<TableRow className="hover:bg-background">
<TableHead>Sandbox Name</TableHead>
<TableHead>Shared By</TableHead>
<TableHead>Opened</TableHead>
<TableHead>Sent On</TableHead>
<TableHead className="text-right"></TableHead>
</TableRow>
</TableHeader>
@ -62,7 +62,9 @@ export default function DashboardSharedWithMe({
{sandbox.author}
</div>
</TableCell>
<TableCell>{sandbox.sharedOn.toLocaleDateString()}</TableCell>
<TableCell>
{new Date(sandbox.sharedOn).toLocaleDateString()}
</TableCell>
<TableCell className="text-right">
<Button>
Open <ChevronRight className="w-4 h-4 ml-2" />