From fa41da943e9c2da92f3f20818c5f29de2e356547 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 19 Apr 2024 01:27:53 +0200 Subject: [PATCH] update playgrounds to reflect tag change --- playgrounds/react/pages/dialog/dialog-scroll-issue.tsx | 5 ++--- playgrounds/react/pages/dialog/dialog.tsx | 5 ++--- playgrounds/react/pages/dialog/scrollable-dialog.tsx | 6 ++---- .../react/pages/dialog/scrollable-page-with-dialog.tsx | 5 ++--- .../react/pages/listbox/listbox-with-pure-tailwind.tsx | 3 +-- playgrounds/react/pages/menu/menu-with-transition.tsx | 2 -- playgrounds/react/pages/popover/popover.tsx | 3 +-- playgrounds/react/pages/transitions/appear.tsx | 8 ++++++++ .../pages/transitions/component-examples/dropdown.tsx | 1 + .../react/pages/transitions/component-examples/modal.tsx | 2 ++ .../transitions/component-examples/nested/hidden.tsx | 2 +- .../transitions/component-examples/nested/unmount.tsx | 3 ++- .../pages/transitions/component-examples/peek-a-boo.tsx | 1 + .../full-page-examples/full-page-transition.tsx | 1 + .../full-page-examples/layout-with-sidebar.tsx | 4 +++- playgrounds/react/pages/transitions/react-hot-toast.tsx | 1 + 16 files changed, 30 insertions(+), 22 deletions(-) diff --git a/playgrounds/react/pages/dialog/dialog-scroll-issue.tsx b/playgrounds/react/pages/dialog/dialog-scroll-issue.tsx index 858558b4e4..6ab3f4acbd 100644 --- a/playgrounds/react/pages/dialog/dialog-scroll-issue.tsx +++ b/playgrounds/react/pages/dialog/dialog-scroll-issue.tsx @@ -1,13 +1,12 @@ import { Dialog, Transition } from '@headlessui/react' -import { Fragment, useState } from 'react' +import { useState } from 'react' function MyDialog({ open, close }) { return ( <> - + console.log('[Transition] Before enter')} afterEnter={() => console.log('[Transition] After enter')} beforeLeave={() => console.log('[Transition] Before leave')} @@ -79,7 +78,6 @@ export default function Home() {
- +
console.log('[Transition] Before enter')} afterEnter={() => console.log('[Transition] After enter')} beforeLeave={() => console.log('[Transition] Before leave')} @@ -52,7 +51,6 @@ export default function Home() {
Initial render
Not on the initial render
{ @@ -78,6 +79,7 @@ export default function Home() { {/* This element is to trick the browser into centering the modal contents. */} - + diff --git a/playgrounds/react/pages/transitions/component-examples/nested/unmount.tsx b/playgrounds/react/pages/transitions/component-examples/nested/unmount.tsx index 380a919372..51e32deebb 100644 --- a/playgrounds/react/pages/transitions/component-examples/nested/unmount.tsx +++ b/playgrounds/react/pages/transitions/component-examples/nested/unmount.tsx @@ -18,7 +18,7 @@ export default function Home() { - + @@ -43,6 +43,7 @@ export default function Home() { function Box({ children }: { children?: ReactNode }) { return ( console.log('beforeEnter')} diff --git a/playgrounds/react/pages/transitions/full-page-examples/full-page-transition.tsx b/playgrounds/react/pages/transitions/full-page-examples/full-page-transition.tsx index 504e03b113..1095cdc5e7 100644 --- a/playgrounds/react/pages/transitions/full-page-examples/full-page-transition.tsx +++ b/playgrounds/react/pages/transitions/full-page-examples/full-page-transition.tsx @@ -160,6 +160,7 @@ function FullPageTransition() {
{pages.map((page, i) => ( {/* Off-canvas menu for mobile */} - + {/* Off-canvas menu overlay, show/hide based on off-canvas menu state. */} { {(t) => (