chore: update cinny submodule to latest commit for improved navigation and routing

This commit is contained in:
2026-07-09 17:23:45 +10:00
parent b496c70190
commit 82effc9680
6 changed files with 706 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import React from 'react';
import { Outlet, useLocation } from 'react-router-dom';
import { MobileSwipeBackPanel } from './mobile/MobileSwipeBackPanel';
/**
* Wrapper for Outlet that adds route-based animation
* Forces remount on route change by using location as key
*/
export function AnimatedOutlet() {
const location = useLocation();
return (
<MobileSwipeBackPanel>
<div
key={location.pathname}
data-route-transition="true"
style={{
flex: 1,
minWidth: 0,
minHeight: 0,
overflow: 'hidden',
display: 'flex',
flexDirection: 'column',
}}
>
<Outlet />
</div>
</MobileSwipeBackPanel>
);
}