Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updated the paths in the upload page and community card #290

Merged
merged 4 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(mentee)/(dashboard-route)/mentee-resources/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Resources = () => {
</Link>
<Link
href="/mentee-resources/explore?path=Explores"
className="fixed bottom-[200px] right-10 md:hidden"
className="fixed bottom-[130px] right-10 md:hidden"
>
<Image
src={Add}
Expand Down
2 changes: 1 addition & 1 deletion app/(mentor)/(dashboard-mentor)/mentor-resources/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function MentorResources() {
<div className="bg-white p-4 pt-10">
<Link
className="bg-[#121212] px-5 py-3 rounded-[6px] cursor-pointer text-white ml-auto mb-8 block w-max"
href="/mentor-resources/upload"
href="/mentor-resources/upload?path=Resources"
>
Upload resource
</Link>
Expand Down
4 changes: 2 additions & 2 deletions components/Community/ForumCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ const Forum = ({
pathname === "/communities"
? "/communities"
: pathname === "/mentor-community"
? `/mentor-community/${slug}`
: `/mentee-community/${slug}`
? `/mentor-community/${slug}?path=Communities`
: `/mentee-community/${slug}?path=Discussions`
}
className="text-xs text-center md:text-base border-solid border-[1px] p-4 md:py-5 md:px-10 w-full md:w-fit mx-auto border-NeutalBase rounded-lg font-medium font-Inter"
onClick={(e) => {
Expand Down
8 changes: 4 additions & 4 deletions components/Community/MentorGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ const MentorGrid: React.FC = () => {
<Link
href={`${
pathname === "/mentor-community"
? "/mentor-community/mentorships"
: pathname === "/mentee-community"
? "/mentee-community/mentorships"
: "communities/mentorships"
? "/mentor-community/mentorships?path=Mentorships"
: pathname === "/mentee-communities"
? "/mentee-community/mentorships?path=Mentorships"
: "mentee-community/mentorships?path=Mentorships"
}`}
>
<div className="seeMore text-Accent1 lg:font-medium lg:text-[16px] lg:leading-[25.2px] mr-6 cursor-pointer ">
Expand Down
4 changes: 2 additions & 2 deletions components/Community/mentorship-sessions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const MentorshipSessions = () => {
pathname === "/mentor-community"
? "/mentor-community/mentorships"
: pathname === "/mentee-communities"
? "/mentee-community/mentorships"
: "mentee-community/mentorships"
? "/mentee-community/mentorships?path=Mentorship"
: "mentee-community/mentorships?path=Mentorship"
}`}
className="text-[.875rem] md:block md:text-[1rem] font-medium cursor-pointer text-Accent1 hover:underline"
>
Expand Down
Loading