USACE / groundwork

React Components for USACE Applications
https://usace.github.io/groundwork
4 stars 0 forks source link

Documentation: Site Wrapper #14

Closed jeffsuperglide closed 2 months ago

jeffsuperglide commented 3 months ago

Copy button for example code results in undefined when trying to paste into an IDE.

Also, headerLinks or links for SiteWrapper prop?

import { SiteWrapper } from "@usace/groundwork";
import { useConnect } from "redux-bundler-hook";

const links = [{ id: "docs", text: "Documentation", href: "/docs" }];

function App() {
  const {
    route: Route,
  } = useConnect("selectRoute");

  return (
      <SiteWrapper headerLinks={links}>
        <Route />
      </SiteWrapper>
  );
}

export default App;
willbreitkreutz commented 2 months ago

Also, headerLinks or links for SiteWrapper prop?

Used to be headerLinks updated to be links but need to double check that the docs got updated too.