@@ -21,13 +21,13 @@ import Emoji from "@/components/Emoji"
21
21
import FeedbackCard from "@/components/FeedbackCard"
22
22
import InlineLink , { BaseLink } from "@/components/Link"
23
23
import MainArticle from "@/components/MainArticle"
24
- import Modal from "@/components/Modal"
25
24
import OldHeading from "@/components/OldHeading"
26
25
import Text from "@/components/OldText"
27
26
import PageMetadata from "@/components/PageMetadata"
28
27
import Translation from "@/components/Translation"
29
28
import { getSkillTranslationId , Skill } from "@/components/TutorialMetadata"
30
29
import TutorialTags from "@/components/TutorialTags"
30
+ import Modal from "@/components/ui/dialog-modal"
31
31
32
32
import { existsNamespace } from "@/lib/utils/existsNamespace"
33
33
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
@@ -42,6 +42,7 @@ import {
42
42
43
43
import externalTutorials from "@/data/externalTutorials.json"
44
44
45
+ import { useBreakpointValue } from "@/hooks/useBreakpointValue"
45
46
import { useRtlFlip } from "@/hooks/useRtlFlip"
46
47
47
48
const FilterTag = forwardRef < { isActive : boolean ; name : string } , "button" > (
@@ -205,6 +206,8 @@ const TutorialPage = ({
205
206
}
206
207
207
208
const dir = contentNotTranslated ? "ltr" : "unset"
209
+
210
+ const modalSize = useBreakpointValue ( { base : "xl" , md : "md" } as const )
208
211
return (
209
212
< Flex
210
213
as = { MainArticle }
@@ -248,9 +251,9 @@ const TutorialPage = ({
248
251
</ Text >
249
252
250
253
< Modal
251
- isOpen = { isModalOpen }
252
- onClose = { ( ) => setModalOpen ( false ) }
253
- size = { { base : "full" , md : "xl" } }
254
+ open = { isModalOpen }
255
+ onOpenChange = { ( open ) => setModalOpen ( open ) }
256
+ size = { modalSize }
254
257
contentProps = { { dir } }
255
258
title = {
256
259
< Translation id = "page-developers-tutorials:page-tutorial-submit-btn" />
0 commit comments