@edu-tosel/design 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,8 @@
1
1
  import "../style.css";
2
- export default function Navigation(): import("react/jsx-runtime").JSX.Element;
2
+ export default function Navigation({ contents, }: {
3
+ contents: {
4
+ title: string;
5
+ href: string;
6
+ icon: string;
7
+ }[];
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -13,26 +13,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import "../style.css";
14
14
  import { useState } from "react";
15
15
  import { center } from "../asset/display";
16
- var contents = [
17
- {
18
- title: "홈",
19
- href: "/",
20
- icon: "",
21
- },
22
- {
23
- title: "접수",
24
- href: "/receipt",
25
- icon: "",
26
- },
27
- {
28
- title: "성적확인",
29
- href: "https://lab.tosel.co.kr",
30
- icon: "",
31
- },
32
- ];
33
- export default function Navigation() {
16
+ export default function Navigation(_a) {
17
+ var contents = _a.contents;
34
18
  var pathname = window.location.pathname;
35
- var _a = useState(pathname), nowPath = _a[0], setNowPath = _a[1];
19
+ var _b = useState(pathname), nowPath = _b[0], setNowPath = _b[1];
36
20
  var bgColor = function (href) {
37
21
  if (nowPath === href)
38
22
  return "bg-white ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2