Skip to content

Commit ceed033

Browse files
committed
refactor: reorganize imports and adjust padding in MainNav component
1 parent 4edcefb commit ceed033

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/[locale]/dashboard/components/main-nav.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use client';
22

3-
import { Session } from 'next-auth';
4-
import { signIn, signOut, useSession } from 'next-auth/react';
3+
import React, { useEffect, useState } from 'react';
54
import Image from 'next/image';
65
import Link from 'next/link';
76
import { usePathname, useRouter } from 'next/navigation';
7+
import { Session } from 'next-auth';
8+
import { signIn, signOut, useSession } from 'next-auth/react';
89
import {
910
Avatar,
1011
Button,
@@ -16,11 +17,10 @@ import {
1617
Spinner,
1718
Text,
1819
} from 'opub-ui';
19-
import React, { useEffect, useState } from 'react';
2020

21-
import { Icons } from '@/components/icons';
2221
import { useDashboardStore } from '@/config/store';
2322
import { GraphQL } from '@/lib/api';
23+
import { Icons } from '@/components/icons';
2424
import { UserDetailsQryDoc } from '../[entityType]/[entitySlug]/schema';
2525
import { allOrganizationsListingDoc } from '../[entityType]/schema';
2626
import Sidebar from './sidebar';
@@ -41,7 +41,6 @@ export function MainNav({ hideSearch = false }) {
4141
const { data: session, status } = useSession();
4242
const { setUserDetails, setAllEntityDetails } = useDashboardStore();
4343

44-
4544
async function keycloakSessionLogOut() {
4645
try {
4746
setIsLoggingOut(true);
@@ -126,7 +125,7 @@ export function MainNav({ hideSearch = false }) {
126125
}
127126
};
128127
return (
129-
<nav className="p-4 lg:p-10 lg:pb-7">
128+
<nav className="p-4 lg:p-6">
130129
<div className="flex items-center justify-between gap-4 ">
131130
<div className="flex items-center gap-1">
132131
<div className="lg:hidden">

0 commit comments

Comments
 (0)