mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
completely removed modal reducer
This commit is contained in:
parent
b1e8bddbaf
commit
8d5afb4f98
34 changed files with 189 additions and 300 deletions
16
src/store/photoSwipe/PhotoSwipeStore.tsx
Normal file
16
src/store/photoSwipe/PhotoSwipeStore.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { makeAutoObservable } from 'mobx';
|
||||
import { IFile } from '~/redux/types';
|
||||
|
||||
export class PhotoSwipeStore {
|
||||
images: IFile[] = [];
|
||||
index: number = 0;
|
||||
|
||||
constructor() {
|
||||
makeAutoObservable(this);
|
||||
}
|
||||
|
||||
setData = (images: IFile[], index: number) => {
|
||||
this.images = images;
|
||||
this.index = index;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue