The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove unnecessary prop in flyout
Joshen Lim8f427f836839
diff --git a/www/components/UI/FlyOut.tsx b/www/components/UI/FlyOut.tsxindex 24f0c3e78a8..300a5d59b94 100644--- a/www/components/UI/FlyOut.tsx+++ b/www/components/UI/FlyOut.tsx@@ -5,14 +5,13 @@ type Props = {title?: stringchildren?: React.ReactNodeclassName?: string- renderTriggerElement?: anyopen?: booleanhandleCancel?: anysingleBgColor?: boolean}const FlyOut = (props: Props) => {- const { title = '', children, className = '', renderTriggerElement = null, singleBgColor = false, handleCancel } = props+ const { title = '', children, className = '', singleBgColor = false, handleCancel } = propsconst [show, setShow] = useState(false)useEffect(() => {@@ -50,18 +49,6 @@ const FlyOut = (props: Props) => {return (<>- {renderTriggerElement && (- <div- className={`- inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700- dark:text-dark-100 ${- renderTriggerElement === null ? 'hover:border-gray-300 dark:hover:border-dark-100' : ''- }- `}- >- {renderTriggerElement()}- </div>- )}<Transitionappear={true}show={props.open}