Added more types

This commit is contained in:
2023-09-03 00:09:44 +02:00
parent a83cc7d8c6
commit ff63fa888b
12 changed files with 1490 additions and 1473 deletions

View File

@@ -8,7 +8,12 @@ interface AnchoringProps {
linkTo?: string // Default: #main-page
}
export const Anchoring = (props: AnchoringProps) => {
/**
* Made to be used with the carousel
* @param {AnchoringProps} props Props for the anchoring.
* @return {ReactElement} The function component
*/
export const Anchoring: React.FC<AnchoringProps> = (props) => {
const [opacity, setOpacity] = useState(1);
const anchoringRef = useRef<HTMLDivElement>(null);