refactor: extract bottom sheet component
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
import React, { useEffect, useState } from 'react'
|
||||
|
||||
type Props = {
|
||||
visible?: boolean
|
||||
export type BlurredOverlayContainerProps = {
|
||||
visible: boolean
|
||||
bgOpacity?: string
|
||||
changeDelay?: string
|
||||
effectdelay?: string
|
||||
@@ -17,7 +17,7 @@ const BlurredOverlayContainer = ({
|
||||
children,
|
||||
onClick,
|
||||
...props
|
||||
}: Props) => {
|
||||
}: BlurredOverlayContainerProps) => {
|
||||
const [loaded, setLoaded] = useState(visible)
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user