MCPcopy Create free account
hub / github.com/OneBitCodeBlog/onebitlife / Routes

Function Routes

src/Routes/index.jsx:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import HomePage from "./HomePage";
5
6export default function Routes() {
7 const [showHome, setShowHome] = useState("false");
8 ChangeNavigationService.checkShowHome(1)
9 .then((showHome) => {
10 setShowHome(showHome.showHome);
11 })
12 .catch((err) => console.log(err));
13
14 return <>{showHome === "true" ? <HomePage /> : <AllPages />}</>;
15}

Callers

nothing calls this directly

Calls 1

setShowHomeFunction · 0.85

Tested by

no test coverage detected