Skip to content

Commit 648fe16

Browse files
committed
fix few lint errors
1 parent f22d5be commit 648fe16

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

app/[locale]/dashboard/[entityType]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const Page = () => {
5555

5656
const [formData, setFormData] = useState(initialFormData);
5757

58-
const { mutate, isLoading: editMutationLoading } = useMutation(
58+
const { mutate } = useMutation(
5959
(input: { input: OrganizationInput }) =>
6060
GraphQL(organizationCreationMutation, {}, input),
6161
{

app/[locale]/dashboard/components/GraphqlPagination/footer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ const Footer: React.FC<FooterProps> = ({
3939
}
4040
};
4141

42-
const handleJumpToPage = (event: React.ChangeEvent<HTMLInputElement>) => {
43-
const pageNumber = parseInt(event.target.value);
44-
if (!isNaN(pageNumber) && pageNumber >= 1 && pageNumber <= totalPages) {
45-
onPageChange(pageNumber);
46-
}
47-
};
48-
4942
const handlePageSizeChange = (event: any) => {
5043
const newSize = parseInt(event as string);
5144
if (!isNaN(newSize) && newSize > 0) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function MainNav({ hideSearch = false }) {
8888
};
8989

9090
fetchData();
91-
}, [session, hasFetched]);
91+
}, [session, hasFetched, setUserDetails, setAllEntityDetails]);
9292

9393
if (isLoggingOut) {
9494
return <LogginOutPage />;

app/[locale]/dashboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Loading } from '@/components/loading';
99
import { useDashboardStore } from '@/config/store';
1010

1111
const UserDashboard = () => {
12-
const { userDetails, allEntityDetails } = useDashboardStore();
12+
const { userDetails } = useDashboardStore();
1313
const list = [
1414
{
1515
label: 'My Dashboard',

components/SessionGuard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function SessionGuard({ children }: { children: ReactNode }) {
1616
) {
1717
signIn('keycloak');
1818
}
19-
}, [data]);
19+
}, [data, pathname]);
2020

2121
return <>{children}</>;
2222
}

0 commit comments

Comments
 (0)