From e466809237041b741ac3e9e67f9658ed71ac2a63 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sat, 29 Jun 2024 17:46:13 +0200 Subject: [PATCH] chore(website): migrate headless ui to use DialogPanel instead of Dialog.Overlay See https://github.com/tailwindlabs/headlessui/releases/tag/%40headlessui%2Freact%40v1.6.0 for migration guide --- website/src/components/SearchPage/CustomizeModal.tsx | 12 ++++++------ .../src/components/SearchPage/SeqPreviewModal.tsx | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/website/src/components/SearchPage/CustomizeModal.tsx b/website/src/components/SearchPage/CustomizeModal.tsx index fc2313fd2..fad67075c 100644 --- a/website/src/components/SearchPage/CustomizeModal.tsx +++ b/website/src/components/SearchPage/CustomizeModal.tsx @@ -1,4 +1,4 @@ -import { Dialog, Transition } from '@headlessui/react'; +import { Dialog, DialogPanel, DialogTitle, Transition } from '@headlessui/react'; const titleCaseWords = (str: string) => { return str @@ -52,16 +52,16 @@ export const CustomizeModal: React.FC = ({
- +
-
- + + Customize {titleCaseWords(thingToCustomize)}s - +
Toggle the visibility of {thingToCustomize}s
@@ -91,7 +91,7 @@ export const CustomizeModal: React.FC = ({ Close
-
+
diff --git a/website/src/components/SearchPage/SeqPreviewModal.tsx b/website/src/components/SearchPage/SeqPreviewModal.tsx index e4b3cbef3..23b7c2049 100644 --- a/website/src/components/SearchPage/SeqPreviewModal.tsx +++ b/website/src/components/SearchPage/SeqPreviewModal.tsx @@ -1,4 +1,4 @@ -import { Dialog, Transition } from '@headlessui/react'; +import { Dialog, DialogPanel, Transition } from '@headlessui/react'; import React, { useEffect, useState } from 'react'; import { routes } from '../../routes/routes'; @@ -124,11 +124,11 @@ export const SeqPreviewModal: React.FC = ({ ) : (
- -
+
+ {controls} {content} -
+
)}