@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.
- package/navigation/index.d.ts +7 -1
- package/navigation/index.js +3 -19
- package/package.json +1 -1
- package/version.txt +1 -1
package/navigation/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import "../style.css";
|
|
2
|
-
export default function Navigation(
|
|
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;
|
package/navigation/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|