From b0e1b08a2acb11feaca2d63ec90473beb96e5155 Mon Sep 17 00:00:00 2001 From: Hariom Vashista Date: Thu, 12 Dec 2024 01:03:31 +0530 Subject: [PATCH 1/2] Update users/self API endpoint to the new /users?profile=true API endpoint (#193) --- src/mocks/handlers/self.handler.ts | 2 +- src/services/serverApi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mocks/handlers/self.handler.ts b/src/mocks/handlers/self.handler.ts index ed7efcf..cc62001 100644 --- a/src/mocks/handlers/self.handler.ts +++ b/src/mocks/handlers/self.handler.ts @@ -3,7 +3,7 @@ import { selfUser } from '../db/user'; const URL = process.env.NEXT_PUBLIC_BASE_URL; const selfUserHandler = [ - rest.get(`${URL}/users/self`, (_, res, ctx) => { + rest.get(`${URL}/users?profile=true`, (_, res, ctx) => { return res(ctx.status(200), ctx.json(selfUser)); }), ]; diff --git a/src/services/serverApi.ts b/src/services/serverApi.ts index cd809fa..959d614 100644 --- a/src/services/serverApi.ts +++ b/src/services/serverApi.ts @@ -44,7 +44,7 @@ export const serverApi = createApi({ providesTags: ['User'], }), getSelfDetails: builder.query({ - query: () => `${BASE_URL}/users/self`, + query: () => `${BASE_URL}/users?profile=true`, }), getContributions: builder.query({ query: (userName) => `${BASE_URL}/contributions/${userName}`, From 5817f67fb7d53534574a8daaa0f2c91a21e590f4 Mon Sep 17 00:00:00 2001 From: Ashif Khan <54736284+ashifkhn@users.noreply.github.com> Date: Thu, 12 Dec 2024 06:48:08 +0000 Subject: [PATCH 2/2] fix header fix (#194) * fix header fix * Update package.json * Update yarn.lock * Update Home.module.css --------- Co-authored-by: Amit Prakash <34869115+iamitprakash@users.noreply.github.com> --- src/components/Layout/Navbar/navbar.module.css | 1 + styles/Home.module.css | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/components/Layout/Navbar/navbar.module.css b/src/components/Layout/Navbar/navbar.module.css index 7caa29d..b087dc5 100644 --- a/src/components/Layout/Navbar/navbar.module.css +++ b/src/components/Layout/Navbar/navbar.module.css @@ -1,6 +1,7 @@ .navbar { width: 100%; z-index: 1; + position: fixed; } .navbar_menu { diff --git a/styles/Home.module.css b/styles/Home.module.css index e8d5ab6..08b8730 100644 --- a/styles/Home.module.css +++ b/styles/Home.module.css @@ -17,6 +17,7 @@ .content { flex: 1 1 auto; + margin-top: 5rem; } .footer { @@ -143,3 +144,10 @@ filter: invert(1); } } + + +@media only screen and (max-width: 767px) { + .content { + margin-top: 1rem; + } +}