diff --git a/code/frontend/src/App.js b/code/frontend/src/App.js index 6bd51ac..97c3789 100644 --- a/code/frontend/src/App.js +++ b/code/frontend/src/App.js @@ -4,12 +4,16 @@ import Layout from "./components/Layout" import ContextTheme from "./contexts/ContextTheme" import { BrowserRouter } from "react-router-dom" import { Route, Switch } from "react-router" -import PageHome from "./routes/PageHome" +import PageDashboard from "./routes/PageDashboard" import PageRepositories from "./routes/PageRepositories" import PageAlerts from "./routes/PageAlerts" import PageSettings from "./routes/PageSettings" import PageSandbox from "./routes/PageSandbox" import useSavedTheme from "./hooks/useSavedTheme" +import PageLogin from "./routes/PageLogin" +import useSavedLogin from "./hooks/useSavedLogin" +import ContextLogin from "./contexts/ContextLogin" +import PageRoot from "./routes/PageRoot" /** @@ -19,15 +23,20 @@ import useSavedTheme from "./hooks/useSavedTheme" * @constructor */ export default function App() { - const [theme, setAndSaveTheme] = useSavedTheme(); + const theme = useSavedTheme(); + const login = useSavedLogin(); return ( - + +
+ + + @@ -40,14 +49,18 @@ export default function App() { - - + + + + +
+
) } diff --git a/code/frontend/src/components/BoxFullScrollable.js b/code/frontend/src/components/BoxFullScrollable.js index 0db871d..bfd714f 100644 --- a/code/frontend/src/components/BoxFullScrollable.js +++ b/code/frontend/src/components/BoxFullScrollable.js @@ -7,8 +7,6 @@ import BoxFull from "./BoxFull" /** * A {@link BoxFull} whose body does not grow automatically but instead supports scrolling. * - * @todo Is there a way to allow the box body to grow automatically...? - * * @param children - The contents of the box body. * @param childrenClassName - Additional class(es) added to the inner `
` acting as the body. * @param props - Additional props to pass to the box. diff --git a/code/frontend/src/components/Input.module.css b/code/frontend/src/components/Input.module.css index 3c3a12d..28bb69d 100644 --- a/code/frontend/src/components/Input.module.css +++ b/code/frontend/src/components/Input.module.css @@ -15,7 +15,7 @@ } .Input:focus { - outline: 0; /* TODO: Questo è sconsigliato dalle linee guida sull'accessibilità! */ + outline: 0; color: var(--fg-field-on); background-color: var(--bg-field-on); diff --git a/code/frontend/src/components/InputWithIcon.module.css b/code/frontend/src/components/InputWithIcon.module.css index 07db25f..0c916ac 100644 --- a/code/frontend/src/components/InputWithIcon.module.css +++ b/code/frontend/src/components/InputWithIcon.module.css @@ -31,7 +31,7 @@ background-color: var(--bg-field-off); border-width: 0; - outline: 0; /* TODO: Questo è sconsigliato dalle linee guida sull'accessibilità! */ + outline: 0; /* Repeat properties overridden by */ font-family: var(--font-regular); diff --git a/code/frontend/src/components/Label.js b/code/frontend/src/components/Label.js index c8dca39..669baa6 100644 --- a/code/frontend/src/components/Label.js +++ b/code/frontend/src/components/Label.js @@ -8,14 +8,14 @@ import Style from "./Label.module.css" * * @param children - The labelled element. * @param text - Text to be displayed in the label. - * @param for_ - The `[id]` of the labelled element. + * @param htmlFor - The `[id]` of the labelled element. * @returns {JSX.Element} * @constructor */ -export default function Label({ children, text, for_ }) { +export default function Label({ children, text, htmlFor }) { return ( -