Skip to content

Commit

Permalink
Reorder tabs in NavbarSearch component
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsukiKigoshi committed Nov 23, 2023
1 parent a526df8 commit 298c5bf
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions components/NavbarSearch/NavbarSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,7 @@ import { IconSearch } from "@tabler/icons-react";
import classes from "./NavbarSearch.module.css";

const tabs = {
myItems: [
{
rgno: "20315",
season: "Autumn",
ay: "2023",
no: "GES054",
cno: null,
lang: "E",
section: null,
e: "S2: The World of Language Interpreters ",
j: "S2: 通訳の世界",
schedule: "5/TH,6/TH,7/TH",
room: null,
comment: null,
maxnum: "(150)",
flg: "Face to Face",
instructor: "TAMURA, Tomoko",
unit: "3",
deleted: "false",
Label1: null,
},
addNew: [
{
rgno: "20316",
season: "Autumn",
Expand Down Expand Up @@ -716,7 +696,27 @@ const tabs = {
Label1: null,
},
],
addNew: [
myItems: [
{
rgno: "20315",
season: "Autumn",
ay: "2023",
no: "GES054",
cno: null,
lang: "E",
section: null,
e: "S2: The World of Language Interpreters ",
j: "S2: 通訳の世界",
schedule: "5/TH,6/TH,7/TH",
room: null,
comment: null,
maxnum: "(150)",
flg: "Face to Face",
instructor: "TAMURA, Tomoko",
unit: "3",
deleted: "false",
Label1: null,
},
{
rgno: "20316",
season: "Autumn",
Expand Down Expand Up @@ -1400,7 +1400,7 @@ const tabs = {
],
};
export function NavbarSearch() {
const [section, setSection] = useState<"myItems" | "addNew">("myItems");
const [section, setSection] = useState<"addNew" | "myItems">("myItems");
const [value, onChange] = useState(false);

const courses = tabs[section].map((item) => (
Expand Down Expand Up @@ -1459,8 +1459,8 @@ export function NavbarSearch() {
transitionTimingFunction="ease"
fullWidth
data={[
{ label: "My List", value: "myItems" },
{ label: "Add New", value: "addNew" },
{ label: "My List", value: "myItems" },
]}
/>
</div>
Expand Down

0 comments on commit 298c5bf

Please sign in to comment.