feat: add showSearch toggle (#480)
This commit is contained in:
@@ -93,6 +93,7 @@ Open the `config.json` file and configure the radar to your needs.
|
|||||||
|
|
||||||
| Attribute | Description |
|
| Attribute | Description |
|
||||||
| ---------------- | ------------------------------------------------------- |
|
| ---------------- | ------------------------------------------------------- |
|
||||||
|
| showSearch | Render the radar search on the header? |
|
||||||
| showChart | Render the radar visualization on the homepage? |
|
| showChart | Render the radar visualization on the homepage? |
|
||||||
| showTagFilter | Render the tag filter below the radar? |
|
| showTagFilter | Render the tag filter below the radar? |
|
||||||
| showQuadrantList | Render the items below the radar? |
|
| showQuadrantList | Render the items below the radar? |
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"logoFile": "logo.svg",
|
"logoFile": "logo.svg",
|
||||||
"jsFile": "",
|
"jsFile": "",
|
||||||
"toggles": {
|
"toggles": {
|
||||||
|
"showSearch": false,
|
||||||
"showChart": true,
|
"showChart": true,
|
||||||
"showTagFilter": true,
|
"showTagFilter": true,
|
||||||
"showQuadrantList": true,
|
"showQuadrantList": true,
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ import styles from "./Navigation.module.css";
|
|||||||
|
|
||||||
import IconOverview from "@/components/Icons/Overview";
|
import IconOverview from "@/components/Icons/Overview";
|
||||||
import IconQuestion from "@/components/Icons/Question";
|
import IconQuestion from "@/components/Icons/Question";
|
||||||
import { getLabel } from "@/lib/data";
|
import IconSearch from "@/components/Icons/Search";
|
||||||
|
import { getLabel, getToggle } from "@/lib/data";
|
||||||
|
|
||||||
export function Navigation() {
|
export function Navigation() {
|
||||||
return (
|
return (
|
||||||
@@ -22,14 +23,14 @@ export function Navigation() {
|
|||||||
<span className={styles.label}>{getLabel("pageOverview")}</span>
|
<span className={styles.label}>{getLabel("pageOverview")}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
{/*
|
{getToggle("showSearch") && (
|
||||||
<li className={styles.item}>
|
<li className={styles.item}>
|
||||||
<Link href="/overview">
|
<Link href="/overview">
|
||||||
<IconSearch className={styles.icon} />
|
<IconSearch className={styles.icon} />
|
||||||
<span className={styles.label}>{getLabel("pageSearch")}</span>
|
<span className={styles.label}>{getLabel("pageSearch")}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
*/}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user