chore: update cinny submodule to latest commit with mobile gesture enhancements and disable route animation on compact view

This commit is contained in:
2026-07-09 18:06:06 +10:00
parent 83b4cbbd8e
commit 72dbbe29b9
9 changed files with 429 additions and 497 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { Outlet, useLocation } from 'react-router-dom';
import { MobileSwipeBackPanel } from './mobile/MobileSwipeBackPanel';
import { useCompactNav } from '../hooks/useCompactNav';
import { MobileSwipeGestureHost } from './mobile/MobileSwipeGestureHost';
/**
* Wrapper for Outlet that adds route-based animation
@@ -8,12 +9,13 @@ import { MobileSwipeBackPanel } from './mobile/MobileSwipeBackPanel';
*/
export function AnimatedOutlet() {
const location = useLocation();
const compact = useCompactNav();
return (
<MobileSwipeBackPanel>
<MobileSwipeGestureHost>
<div
key={location.pathname}
data-route-transition="true"
{...(!compact && { 'data-route-transition': 'true' })}
style={{
flex: 1,
minWidth: 0,
@@ -25,6 +27,6 @@ export function AnimatedOutlet() {
>
<Outlet />
</div>
</MobileSwipeBackPanel>
</MobileSwipeGestureHost>
);
}