Skip to content

Commit

Permalink
removed code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Gissebass committed Sep 8, 2023
1 parent 821d14c commit 833837e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/views/Intern/InternSearch/CustomTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const rowsPerPageOptions = [5, 10, 25];

const CustomTable = () => {
const [page, setPage] = React.useState(1);
const [rowsPerPage, setRowsPerPage] = React.useState(rowsPerPageOptions[0]);
const [rowsPerPage] = React.useState(rowsPerPageOptions[0]);

const handleChangePage = (event: any, newPage: any) => {
setPage(newPage);
Expand Down
5 changes: 2 additions & 3 deletions src/views/Intern/InternSearch/InternSearchInput.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React from "react";
import {
Autocomplete,
Button,
Expand All @@ -11,8 +11,7 @@ import styles from "./InternSearch.module.css";
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import { LocalizationProvider } from "@mui/x-date-pickers";
import dayjs, { Dayjs } from "dayjs";
import { DatePicker } from "@mui/x-date-pickers";
import { nbNO } from "@mui/x-date-pickers";
import { DatePicker, nbNO } from "@mui/x-date-pickers";

const InternSearchForm = () => {
const boxwidth = 300;
Expand Down
1 change: 0 additions & 1 deletion src/views/Intern/InternSearch/InternSearchView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React, { useState } from "react";
import styles from "./InternSearch.module.css";
import InternSearchInput from "./InternSearchInput";
import CustomDataGrid from "./CustomTable";
Expand Down

0 comments on commit 833837e

Please sign in to comment.