mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
refactor main components and IProps
This commit is contained in:
parent
85a182c053
commit
efbaf13151
124 changed files with 235 additions and 256 deletions
|
@ -22,9 +22,9 @@ import { getNodeSwiperImageSizes } from './helpers';
|
|||
import { NODE_SWIPER_OPTIONS } from './options';
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface IProps extends NodeComponentProps {}
|
||||
interface Props extends NodeComponentProps {}
|
||||
|
||||
const NodeImageSwiperBlock: FC<IProps> = observer(({ node }) => {
|
||||
const NodeImageSwiperBlock: FC<Props> = observer(({ node }) => {
|
||||
const [controlledSwiper, setControlledSwiper] = useState<SwiperClass>();
|
||||
const showPhotoSwiper = useImageModal();
|
||||
const { isOpened: isModalActive } = useModal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue