Skip to content

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

remove unnecessary code

Isaiah Hamiltond3e2de2fef76
diff --git a/www/data/auth.json b/www/data/auth.json
index c5264164474..79a70b1869c 100644
--- a/www/data/auth.json
+++ b/www/data/auth.json
@@ -1,54 +1,41 @@
[
{
- "path": "/images/product/auth/apple-icon.svg",
- "alt": "apple auth login icon"
+ "name": "apple"
},
{
- "path": "/images/product/auth/bitbucket-icon.svg",
- "alt": "bitbucket auth login icon"
+ "name": "bitbucket"
},
{
- "path": "/images/product/auth/discord-icon.svg",
- "alt": "discord auth login icon"
+ "name": "discord"
},
{
- "path": "/images/product/auth/facebook-icon.svg",
- "alt": "facebook auth login icon"
+ "name": "facebook"
},
{
- "path": "/images/product/auth/gitlab-icon.svg",
- "alt": "gitlab auth login icon"
+ "name": "gitlab"
},
{
- "path": "/images/product/auth/google-icon.svg",
- "alt": "google auth login icon"
+ "name": "google"
},
{
- "path": "/images/product/auth/messagebird-icon.svg",
- "alt": "messagebird auth login icon"
+ "name": "messagebird"
},
{
- "path": "/images/product/auth/microsoft-icon.svg",
- "alt": "microsoft auth login icon"
+ "name": "microsoft"
},
{
- "path": "/images/product/auth/slack-icon.svg",
- "alt": "slack auth login icon"
+ "name": "slack"
},
{
- "path": "/images/product/auth/spotify-icon.svg",
- "alt": "spotify auth login icon"
+ "name": "spotify"
},
{
- "path": "/images/product/auth/twitch-icon.svg",
- "alt": "twitch auth login icon"
+ "name": "twitch"
},
{
- "path": "/images/product/auth/twitter-icon.svg",
- "alt": "twitter auth login icon"
+ "name": "twitter"
},
{
- "path": "/images/product/auth/twilio-icon.svg",
- "alt": "twilio auth login icon"
+ "name": "twilio"
}
]
diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsx
index 71d82a28877..b0347768377 100644
--- a/www/pages/auth/Auth.tsx
+++ b/www/pages/auth/Auth.tsx
@@ -125,9 +125,9 @@ function AuthPage(props: Props) {
return (
<img
className="mb-2 mr-2"
- src={`${basePath}${auth.path}`}
+ src={`${basePath}/images/product/auth/${auth.name}-icon.svg`}
width={21}
- alt={auth.alt}
+ alt={`${auth.name} auth login icon`}
/>
)
})}