Added more types
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user