Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove unused imports and props

Joshen Lim616b0a2f6b67
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx
index fbaa6eefcb2..bd66d489cea 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx
@@ -1,6 +1,6 @@
import Link from 'next/link'
import { observer } from 'mobx-react-lite'
-import { Button, IconAlertCircle, IconExternalLink } from 'ui'
+import { IconAlertCircle } from 'ui'
import { useParams } from 'hooks'
import { useProjectSettingsQuery } from 'data/config/project-settings-query'
@@ -53,7 +53,7 @@ const CustomDomainConfig = () => {
<div>
<FormHeader title="Custom Domains" description="" />
{isNoHostnameConfiguredError ? (
- <CustomDomainsConfigureHostname projectRef={ref} settings={settings} />
+ <CustomDomainsConfigureHostname projectRef={ref} />
) : (
<Panel>
{isLoading && (
diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
index 656625c0291..f5a6cc36bab 100644
--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
@@ -22,13 +22,9 @@ const schema = yup.object({
export type CustomDomainsConfigureHostnameProps = {
projectRef?: string
- settings?: ProjectSettingsResponse
}
-const CustomDomainsConfigureHostname = ({
- projectRef,
- settings,
-}: CustomDomainsConfigureHostnameProps) => {
+const CustomDomainsConfigureHostname = ({ projectRef }: CustomDomainsConfigureHostnameProps) => {
const { ui } = useStore()
const { mutateAsync: createCustomDomain } = useCustomDomainCreateMutation()