Skip to content

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

Misc ui fixes

Joshen Limca43fcad6393
diff --git a/studio/components/interfaces/Authentication/Users/Users.tsx b/studio/components/interfaces/Authentication/Users/Users.tsx
index 9e2bea5e35b..d9463ff14c7 100644
--- a/studio/components/interfaces/Authentication/Users/Users.tsx
+++ b/studio/components/interfaces/Authentication/Users/Users.tsx
@@ -48,7 +48,7 @@ const Users = () => {
<div className="flex justify-between px-6 pt-6 pb-2">
<div className="relative flex space-x-1">
<Input
- size="tiny"
+ size="small"
value={PageState.filterInputValue}
onChange={onFilterChange}
onKeyDown={onFilterKeyPress}
diff --git a/studio/components/ui/ProductMenu/ProductMenu.tsx b/studio/components/ui/ProductMenu/ProductMenu.tsx
index 8e907126cc6..9827da6aa12 100644
--- a/studio/components/ui/ProductMenu/ProductMenu.tsx
+++ b/studio/components/ui/ProductMenu/ProductMenu.tsx
@@ -13,8 +13,8 @@ const ProductMenu: FC<Props> = ({ page, menu }) => {
<div className="flex flex-col space-y-8 overflow-y-auto">
<Menu type="pills">
{menu.map((group: ProductMenuGroup, idx: number) => (
- <>
- <div key={group.title} className="space-y-8 my-6">
+ <div key={group.title}>
+ <div className="space-y-8 my-6">
<div className="mx-3">
<Menu.Group
//@ts-ignore
@@ -40,7 +40,7 @@ const ProductMenu: FC<Props> = ({ page, menu }) => {
</div>
</div>
{idx !== menu.length - 1 && <div className="bg-scale-500 h-px w-full"></div>}
- </>
+ </div>
))}
</Menu>
</div>
diff --git a/studio/components/ui/ProductMenu/ProductMenuItem.tsx b/studio/components/ui/ProductMenu/ProductMenuItem.tsx
index a5d29419eb5..52b590104f2 100644
--- a/studio/components/ui/ProductMenu/ProductMenuItem.tsx
+++ b/studio/components/ui/ProductMenu/ProductMenuItem.tsx
@@ -3,7 +3,6 @@ import Link from 'next/link'
import { Menu, Typography } from '@supabase/ui'
interface Props {
- key: string
name: string | ReactNode
isActive: boolean
icon?: ReactNode
@@ -14,7 +13,6 @@ interface Props {
}
const ProductMenuItem: FC<Props> = ({
- key,
name,
isActive,
icon,
@@ -34,7 +32,7 @@ const ProductMenuItem: FC<Props> = ({
if (url) {
return (
- <Link key={key} href={url}>
+ <Link href={url}>
<a className="block" target={target}>
{menuItem}
</a>
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsx
index 1c30b333eb8..223b71d0d3b 100644
--- a/studio/pages/project/[ref]/auth/settings.tsx
+++ b/studio/pages/project/[ref]/auth/settings.tsx
@@ -206,32 +206,30 @@ const Settings = () => {
descriptionText={authConfig.properties.MAILER_AUTOCONFIRM.help}
/>
- <div className="form-group items-center">
- <label className="">Enable Custom SMTP</label>
- <div className="form-control flex items-center">
- <Toggle
- onToggle={(value: any) => {
- /*
- * temporary solution
- * clear the values of SMTP when toggling
- */
- if (!value) {
- onFormSubmit({
- SMTP_ADMIN_EMAIL: '',
- SMTP_HOST: '',
- SMTP_PORT: '',
- SMTP_USER: '',
- SMTP_PASS: '',
- SMTP_SENDER_NAME: '',
- RATE_LIMIT_EMAIL_SENT: 30,
- })
- }
- setCustomSMTP(!isCustomSMTPEnabled)
- }}
- isOn={isCustomSMTPEnabled}
- />
- </div>
- </div>
+ <UIToggle
+ layout="horizontal"
+ className="mb-4"
+ label="Enable Custom SMTP"
+ checked={isCustomSMTPEnabled}
+ onChange={(value: any) => {
+ /*
+ * temporary solution
+ * clear the values of SMTP when toggling
+ */
+ if (!value) {
+ onFormSubmit({
+ SMTP_ADMIN_EMAIL: '',
+ SMTP_HOST: '',
+ SMTP_PORT: '',
+ SMTP_USER: '',
+ SMTP_PASS: '',
+ SMTP_SENDER_NAME: '',
+ RATE_LIMIT_EMAIL_SENT: 30,
+ })
+ }
+ setCustomSMTP(!isCustomSMTPEnabled)
+ }}
+ />
{isCustomSMTPEnabled && (
<>
<AutoField