Skip to content

Commit c44c9b3

Browse files
committed
refactor(Viewer): Move all props in the same place
1 parent 3474f66 commit c44c9b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/cozy-viewer/src/ViewerContainer.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ const ViewerContainer = props => {
2929
children,
3030
componentsProps,
3131
isPublic,
32+
currentIndex,
33+
files,
34+
currentURL,
3235
...rest
3336
} = props
34-
const { currentIndex, files, currentURL } = props
3537
const toolbarRef = createRef()
3638
const { isDesktop } = useBreakpoints()
3739
const [isReadOnly, setIsReadOnly] = useState(true)

0 commit comments

Comments
 (0)