Skip to content

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

Fix stylgin for product empty states

Joshen Limf46985f87e01
diff --git a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
index a04a83c95d1..d5aaf807f6b 100644
--- a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
+++ b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
@@ -8,7 +8,6 @@ import {
IconChevronDown,
IconHelpCircle,
IconTerminal,
- IconTool,
SidePanel,
Typography,
} from '@supabase/ui'
@@ -118,9 +117,9 @@ const NoFunctionsState: React.FC = ({}) => {
router.push(`/project/${ref}/database/functions`)
}}
>
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-1100">
You will need to create a trigger based function before you can add it to your trigger.
- </Typography.Text>
+ </p>
</ProductEmptyState>
)
}
diff --git a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
index f43f2b50ec0..83fea549b09 100644
--- a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
+++ b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
@@ -12,7 +12,6 @@ import {
IconPlayCircle,
IconPauseCircle,
IconTerminal,
- IconTool,
Badge,
Button,
} from '@supabase/ui'
@@ -395,9 +394,9 @@ const NoTableState: FC = ({}) => {
router.push(`/project/${ref}/database/tables`)
}}
>
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-1100">
You will need to create a table first before you can make a trigger
- </Typography.Text>
+ </p>
</ProductEmptyState>
)
}
diff --git a/studio/pages/project/[ref]/database/hooks/index.tsx b/studio/pages/project/[ref]/database/hooks/index.tsx
index 343447c7dda..9684273bcfe 100644
--- a/studio/pages/project/[ref]/database/hooks/index.tsx
+++ b/studio/pages/project/[ref]/database/hooks/index.tsx
@@ -135,7 +135,7 @@ const TriggersList: FC<any> = observer(
onClickCta={() => enableHooks()}
>
<AlphaPreview />
- <span className="text-sm text-scale-1100">Enable hooks on your project.</span>
+ <p className="text-sm text-scale-1100">Enable hooks on your project.</p>
</ProductEmptyState>
)}
</>
@@ -170,10 +170,10 @@ const TriggersList: FC<any> = observer(
onClickCta={() => createHook()}
>
<AlphaPreview />
- <span className="text-sm text-scale-1100">
+ <p className="text-sm text-scale-1100">
Function Hooks can be used to trigger serverless functions or send requests to an
HTTP endpoint.
- </span>
+ </p>
</ProductEmptyState>
</div>
) : (
diff --git a/studio/pages/project/[ref]/database/triggers.tsx b/studio/pages/project/[ref]/database/triggers.tsx
index b87181bdd3b..0728cde33d2 100644
--- a/studio/pages/project/[ref]/database/triggers.tsx
+++ b/studio/pages/project/[ref]/database/triggers.tsx
@@ -120,14 +120,14 @@ const TriggersList: FC<any> = observer(
onClickCta={() => createTrigger()}
>
<AlphaPreview />
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-1100">
A PostgreSQL trigger is a function invoked automatically whenever an event
associated with a table occurs.
- </Typography.Text>
- <Typography.Text type="secondary">
+ </p>
+ <p className="text-sm text-scale-1100">
An event could be any of the following: INSERT, UPDATE, DELETE. A trigger is a
special user-defined function associated with a table.
- </Typography.Text>
+ </p>
</ProductEmptyState>
</div>
) : (
diff --git a/studio/pages/project/[ref]/reports/index.tsx b/studio/pages/project/[ref]/reports/index.tsx
index 5ec7e9df279..b14e23a9314 100644
--- a/studio/pages/project/[ref]/reports/index.tsx
+++ b/studio/pages/project/[ref]/reports/index.tsx
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react'
import { observer } from 'mobx-react-lite'
import { useRouter } from 'next/router'
-import { Typography } from '@supabase/ui'
import { API_URL } from 'lib/constants'
import { useStore, withAuth } from 'hooks'
@@ -14,8 +13,6 @@ import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'
import { useProjectContentStore } from 'stores/projectContentStore'
import { createReport } from 'components/to-be-cleaned/Reports/Reports.utils'
-const { Text } = Typography
-
const PageLayout = () => {
const [loading, setLoading] = useState(true)
@@ -70,11 +67,11 @@ const PageLayout = () => {
}
}}
>
- <Text type="secondary">Create custom reports for your projects.</Text>
- <Text type="secondary">
+ <p className="text-sm text-scale-1100">Create custom reports for your projects.</p>
+ <p className="text-sm text-scale-1100">
Get a high level overview of your network traffic, user actions, and infrastructure
health.
- </Text>
+ </p>
</ProductEmptyState>
)}
</div>
diff --git a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx
index f7ca38bac7e..854ab530fe3 100644
--- a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx
+++ b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx
@@ -2,7 +2,6 @@ import React, { useEffect } from 'react'
import { useRouter } from 'next/router'
import { observer } from 'mobx-react-lite'
import { find } from 'lodash'
-import { Typography } from '@supabase/ui'
import { API_URL } from 'lib/constants'
import { withAuth, useStore } from 'hooks'
@@ -49,12 +48,12 @@ const PageLayout = () => {
infoButtonUrl="https://supabase.com/docs/guides/storage"
onClickCta={openCreateBucketModal}
>
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-1100">
Create buckets to store and serve any type of digital content.
- </Typography.Text>
- <Typography.Text type="secondary">
+ </p>
+ <p className="text-sm text-scale-1100">
Make your buckets private or public depending on your security preference.
- </Typography.Text>
+ </p>
</ProductEmptyState>
</div>
) : (
diff --git a/studio/pages/project/[ref]/storage/buckets/index.tsx b/studio/pages/project/[ref]/storage/buckets/index.tsx
index c6ff4a5d74f..441de7b110e 100644
--- a/studio/pages/project/[ref]/storage/buckets/index.tsx
+++ b/studio/pages/project/[ref]/storage/buckets/index.tsx
@@ -1,7 +1,6 @@
import React, { useEffect } from 'react'
import { useRouter } from 'next/router'
import { observer } from 'mobx-react-lite'
-import { Typography } from '@supabase/ui'
import { API_URL } from 'lib/constants'
import { withAuth, useStore } from 'hooks'
@@ -42,12 +41,12 @@ const PageLayout = ({}) => {
infoButtonUrl="https://supabase.com/docs/guides/storage"
onClickCta={openCreateBucketModal}
>
- <Typography.Text type="secondary">
+ <p className="text-sm text-scale-1100">
Create buckets to store and serve any type of digital content.
- </Typography.Text>
- <Typography.Text type="secondary">
+ </p>
+ <p className="text-sm text-scale-1100">
Make your buckets private or public depending on your security preference.
- </Typography.Text>
+ </p>
</ProductEmptyState>
</div>
</StorageLayout>