Skip to content

Commit

Permalink
🐛 fix: I fixed a bug in the server and in an avatar in the publicatio…
Browse files Browse the repository at this point in the history
…ns and file modifications page. - v.0.3.1
  • Loading branch information
mpcgt committed Dec 1, 2024
1 parent 18bf5d3 commit f2a1512
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ dist-ssr
# Server
.env
src/utils/db.firebase.tsx
src/components/features/login/login.tsx
src/api/supabase.tsx
src/components/features/login/login.tsx
6 changes: 3 additions & 3 deletions src/components/features/navbar/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export default function NavigationBar() {
{t("navbarHome")}
</span>
</Link>
<Link to="/waitlist">
<Link to="/discovery">
<span className="p-3 ps-px sm:px-3 md:py-4 text-sm text-white hover:text-neutral-300 focus:outline-none focus:text-neutral-300">
{t("navbarDiscovery")}
</span>
</Link>
<Link to="/waitlist">
<Link to="/profile">
<span className="p-3 ps-px sm:px-3 md:py-4 text-sm text-white hover:text-neutral-300 focus:outline-none focus:text-neutral-300">
{t("navbarProfile")}
</span>
Expand All @@ -104,7 +104,7 @@ export default function NavigationBar() {
</Link>

<div>
<Link to="/rules">
<Link to="/profile">
<span className="group inline-flex items-center gap-x-2 py-2 px-3 bg-indigo-500 font-medium text-sm text-white rounded-full focus:outline-none">
{t("navbarLogin")}
</span>
Expand Down
14 changes: 11 additions & 3 deletions src/components/navigationDiscovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,18 @@ export default function Navigation() {
</Link>
<Link
to="/rules"
target='blank'
className="text-gray-500 hover:text-gray-700 transition-all"
>
Rules •
</Link>
<Link
to="https://github.com/mpcgt/saguenay?tab=GPL-3.0-1-ov-file#readme"
target='blank'
className="text-gray-500 hover:text-gray-700 transition-all"
>
License •
</Link>
<Link
to="https://github.com/mpcgt/saguenay?tab=coc-ov-file"
className="text-gray-500 hover:text-gray-700 transition-all"
Expand All @@ -417,22 +425,22 @@ export default function Navigation() {
</Link>
<Link
to="https://help.saguenay.vercel.app/docs/intro"
className="text-gray-500 hover:text-gray-700 transition-all"
target="_blank"
className="text-gray-500 hover:text-gray-700 transition-all"
>
Documentation •
</Link>
<Link
to="https://help.saguenay.vercel.app/docs/security"
className="text-gray-500 hover:text-gray-700 transition-all"
target="_blank"
className="text-gray-500 hover:text-gray-700 transition-all"
>
Security •
</Link>
<Link
to="https://help.saguenay.vercel.app/blog"
className="text-gray-500 hover:text-gray-700 transition-all"
target="_blank"
className="text-gray-500 hover:text-gray-700 transition-all"
>
Blog •
</Link>
Expand Down
8 changes: 4 additions & 4 deletions src/components/posts/ViewPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ViewPosts = () => {
id: user.id,
full_name: user.user_metadata?.full_name || "Unknown",
email: user.email,
avatar_url: user.user_metadata?.avatar_url || "../../assets/images/others/unknown_avatar.png",
avatar_url: user.user_metadata?.avatar_url || "https://github.com/mpcgt/saguenay/blob/main/src/assets/images/others/unknown_avatar.png?raw=true",
});
}
});
Expand Down Expand Up @@ -91,7 +91,7 @@ const ViewPosts = () => {
return {
...post,
full_name: user ? user.full_name : "Unknown",
avatar_url: user?.avatar_url || "../../assets/images/others/unknown_avatar.png",
avatar_url: user?.avatar_url || "https://github.com/mpcgt/saguenay/blob/main/src/assets/images/others/unknown_avatar.png?raw=true",
};
});

Expand Down Expand Up @@ -172,9 +172,9 @@ const ViewPosts = () => {
<div className="flex items-center gap-2">
<div className="w-8 h-8 bg-zinc-700 rounded-full">
<img
src={post.avatar_url || "../../assets/images/others/unknown_avatar.png"}
src={post.avatar_url || "https://github.com/mpcgt/saguenay/blob/main/src/assets/images/others/unknown_avatar.png?raw=true"}
alt="User Avatar"
className="avatar"
className="avatar rounded-2xl"
/>
</div>
<div>
Expand Down

0 comments on commit f2a1512

Please sign in to comment.