-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
74 additions
and
15 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,10 +1,17 @@ | ||
export default function Page() { | ||
import { ThemesList } from "@/modules/themes/components/themes-list"; | ||
import { getUserLikedThemes, getUserLikes } from "@/modules/themes/services"; | ||
|
||
export default async function Page() { | ||
const userLikedThemes = await getUserLikedThemes(); | ||
const userLikes = await getUserLikes(); | ||
|
||
return ( | ||
<div> | ||
<h2 className="pl-2 text-2xl font-bold">Account</h2> | ||
<h2 className="pl-2 text-2xl font-bold">Liked themes</h2> | ||
<p className="text-muted-foreground pl-2"> | ||
Manage your account settings and preferences | ||
Here you can find all the themes you liked | ||
</p> | ||
<ThemesList themes={userLikedThemes} userLikes={userLikes} /> | ||
</div> | ||
); | ||
} |
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,18 +1,22 @@ | ||
import { ThemeCard } from "@/modules/themes/components/theme-card"; | ||
import { ThemesList } from "@/modules/themes/components/themes-list"; | ||
import { getUserThemes } from "@/modules/themes/services"; | ||
import { getUserLikes, getUserThemes } from "@/modules/themes/services"; | ||
import { Features } from "@/modules/themes/types"; | ||
|
||
export default async function Page() { | ||
const userThemes = await getUserThemes(); | ||
const userLikes = await getUserLikes(); | ||
|
||
return ( | ||
<div> | ||
<h2 className="pl-2 text-2xl font-bold">My themes</h2> | ||
<p className="text-muted-foreground pl-2"> | ||
Here you can find all the themes you created | ||
</p> | ||
<ThemesList themes={userThemes} features={[Features.Delete]} /> | ||
<ThemesList | ||
themes={userThemes} | ||
features={[Features.Delete]} | ||
userLikes={userLikes} | ||
/> | ||
</div> | ||
); | ||
} |
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
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