Skip to content

Commit

Permalink
Fix useMove demo (#5844)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 26, 2024
1 parent 3da9377 commit f65c1c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/doc/hooks/usemove/verticaldoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import React from 'react';
import {useMove } from 'primereact/hooks';
export default function VerticalDemo() {
const { ref, y } = useMove({ initialValue: { y: 0.2 } });
const { ref, y } = useMove({ initialValue: { y: 0.2 }, mode: 'vertical' });
return (
<div className="card flex flex-column justify-content-center align-items-center gap-3">
Expand Down Expand Up @@ -47,7 +47,7 @@ import React from 'react';
import {useMove } from 'primereact/hooks';
export default function VerticalDemo() {
const { ref, y } = useMove({ initialValue: { y: 0.2 } });
const { ref, y } = useMove({ initialValue: { y: 0.2 }, mode: 'vertical' });
return (
<div className="card flex flex-column justify-content-center align-items-center gap-3">
Expand Down

0 comments on commit f65c1c0

Please sign in to comment.