mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
✅ Resolve most TODOs
This commit is contained in:
parent
a4bd1d2ab7
commit
d38caffb0a
8 changed files with 5 additions and 9 deletions
|
@ -53,8 +53,6 @@
|
||||||
|
|
||||||
.Icon {
|
.Icon {
|
||||||
font-size: large;
|
font-size: large;
|
||||||
|
|
||||||
/* TODO: non so quanto sia una buona idea, ma funziona accettabilmente */
|
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
vertical-align: sub;
|
vertical-align: sub;
|
||||||
}
|
}
|
|
@ -6,7 +6,7 @@ import classNames from "classnames"
|
||||||
/**
|
/**
|
||||||
* A slider that allows to select a numeric value in a range.
|
* A slider that allows to select a numeric value in a range.
|
||||||
*
|
*
|
||||||
* @todo Custom styling only works on Firefox!
|
* Custom styling only works on Firefox!
|
||||||
*
|
*
|
||||||
* @param className - Additional class(es) to add to the element.
|
* @param className - Additional class(es) to add to the element.
|
||||||
* @param props - Additional props to pass to the element.
|
* @param props - Additional props to pass to the element.
|
||||||
|
|
|
@ -11,7 +11,6 @@ import BoxMap from "../base/BoxMap"
|
||||||
const STARTING_POSITION = { lat: 41.89309, lng: 12.48289 }
|
const STARTING_POSITION = { lat: 41.89309, lng: 12.48289 }
|
||||||
const STARTING_ZOOM = 3
|
const STARTING_ZOOM = 3
|
||||||
|
|
||||||
// FIXME: this only works correctly at the equator!
|
|
||||||
/**
|
/**
|
||||||
* https://wiki.openstreetmap.org/wiki/Zoom_levels
|
* https://wiki.openstreetmap.org/wiki/Zoom_levels
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,7 +11,6 @@ import ContextLanguage from "../../contexts/ContextLanguage"
|
||||||
/**
|
/**
|
||||||
* The sidebar of the website, with the logo, buttons to switch between the various pages and a notification counter.
|
* The sidebar of the website, with the logo, buttons to switch between the various pages and a notification counter.
|
||||||
*
|
*
|
||||||
* @todo The notification counter is still missing.
|
|
||||||
* @param className - Additional class(es) to be added to the outer container.
|
* @param className - Additional class(es) to be added to the outer container.
|
||||||
* @param props - Additional props to be passed to the outer container.
|
* @param props - Additional props to be passed to the outer container.
|
||||||
* @returns {JSX.Element}
|
* @returns {JSX.Element}
|
||||||
|
|
|
@ -2,6 +2,6 @@ import { createContext } from "react"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Document this.
|
* Context to quickly pass props to the children of {@link RepositoryEditor}.
|
||||||
*/
|
*/
|
||||||
export default createContext(null)
|
export default createContext(null)
|
||||||
|
|
|
@ -2,6 +2,6 @@ import { createContext } from "react"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Document this.
|
* Context to quickly pass props to the children of {@link RepositoryViewer}.
|
||||||
*/
|
*/
|
||||||
export default createContext(null)
|
export default createContext(null)
|
||||||
|
|
|
@ -3,7 +3,7 @@ import ContextRepositoryEditor from "../contexts/ContextRepositoryEditor"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Document this.
|
* Hook to quickly use {@link ContextRepositoryEditor}.
|
||||||
*/
|
*/
|
||||||
export default function useRepositoryEditor() {
|
export default function useRepositoryEditor() {
|
||||||
const context = useContext(ContextRepositoryEditor)
|
const context = useContext(ContextRepositoryEditor)
|
||||||
|
|
|
@ -3,7 +3,7 @@ import ContextRepositoryViewer from "../contexts/ContextRepositoryViewer"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Document this.
|
* Hook to quickly use {@link ContextRepositoryViewer}.
|
||||||
*/
|
*/
|
||||||
export default function useRepositoryViewer() {
|
export default function useRepositoryViewer() {
|
||||||
const context = useContext(ContextRepositoryViewer)
|
const context = useContext(ContextRepositoryViewer)
|
||||||
|
|
Loading…
Reference in a new issue