this should be call uncontrolled modal
This commit is contained in:
@@ -61,7 +61,7 @@ export function Modal({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ControlledModal({
|
export function UncontrolledModal({
|
||||||
children,
|
children,
|
||||||
button,
|
button,
|
||||||
}: {
|
}: {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import LandingCode from "~/modules/landing/landing-code.mdx"
|
|||||||
import { MainNavigation } from "~/modules/navigation/main-navigation"
|
import { MainNavigation } from "~/modules/navigation/main-navigation"
|
||||||
import { buttonClass, maxWidthContainer } from "~/modules/ui/components"
|
import { buttonClass, maxWidthContainer } from "~/modules/ui/components"
|
||||||
import { LandingAnimation } from "../modules/landing/landing-animation"
|
import { LandingAnimation } from "../modules/landing/landing-animation"
|
||||||
import { ControlledModal } from "../modules/ui/modal"
|
import { UncontrolledModal } from "../modules/ui/modal"
|
||||||
|
|
||||||
export default function Landing() {
|
export default function Landing() {
|
||||||
return (
|
return (
|
||||||
@@ -37,7 +37,7 @@ export default function Landing() {
|
|||||||
Get Started
|
Get Started
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<ControlledModal
|
<UncontrolledModal
|
||||||
button={(button) => (
|
button={(button) => (
|
||||||
<button
|
<button
|
||||||
{...button}
|
{...button}
|
||||||
@@ -50,7 +50,7 @@ export default function Landing() {
|
|||||||
<div className="text-sm sm:text-base">
|
<div className="text-sm sm:text-base">
|
||||||
<LandingCode />
|
<LandingCode />
|
||||||
</div>
|
</div>
|
||||||
</ControlledModal>
|
</UncontrolledModal>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user