diff --git a/studio/pages/project/[ref]/auth/settings-new-all.tsx b/studio/pages/project/[ref]/auth/settings-new-all.tsx
deleted file mode 100644
index 1420dff35e1..00000000000
--- a/studio/pages/project/[ref]/auth/settings-new-all.tsx
+++ /dev/null
@@ -1,1109 +0,0 @@
-import {
- Button,
- Collapsible,
- Form,
- IconArrowRight,
- IconCheck,
- IconChevronUp,
- IconGlobe,
- IconTrash,
- IconX,
- Input,
- InputNumber,
- Modal,
- Tabs,
- Toggle,
-} from '@supabase/ui'
-import { AuthLayout } from 'components/layouts'
-import AutoSchemaForm from 'components/interfaces/Auth/AutoSchemaForm'
-import { withAuth } from 'hooks'
-import { observer } from 'mobx-react-lite'
-import React, { useReducer, useState } from 'react'
-import AuthFormSchema from './AuthFormSchema.json'
-
-// import GoogleIcon './../../../static/icons/google-icon.svg'
-
-const DocsButton = () => {
- return (
-
- )
-}
-
-const CardForm = () => {
- // panel
- const Panel = ({
- children,
- header,
- footer,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- footer?: React.ReactNode
- }) => (
-
- {header && (
-
- {header}
-
- )}
-
{children}
- {footer}
-
- )
-
- const Section = ({
- children,
- header,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- }) => (
-
- {header}
- {children}
-
- )
-
- return (
- <>
-
-
- >
- )
-}
-
-// type to do later..
-let initialState: any = {}
-
-AuthFormSchema.map((provider) => {
- initialState[`${provider.name.toLowerCase()}-active`] = provider.name == 'Email' ? true : false
- initialState[`${provider.name.toLowerCase()}-app-id`] = ''
- initialState[`${provider.name.toLowerCase()}-id-key`] = ''
-})
-
-console.log('form initialState', initialState)
-
-function providersReducer(state: any, action: any) {
- switch (action.type) {
- case 'update':
- return Object.assign(state, action.values)
- // case 'decrement':
- // return { count: state.count - 1 }
- default:
- throw new Error()
- }
-}
-
-const AuthForm = () => {
- const [providersFormState, dispatchProvidersForm] = useReducer(providersReducer, initialState)
-
- console.log('providersFormState from useState', providersFormState)
-
- // panel
- const Panel = ({
- children,
- header,
- footer,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- footer?: React.ReactNode
- }) => (
-
- {header && (
-
- {header}
-
- )}
-
{children}
- {footer}
-
- )
-
- const Section = ({
- children,
- header,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- }) => (
-
- {header}
- {children}
-
- )
-
- const CollapsibleContainer = ({
- children,
- header,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- }) => {
- return (
-
- {children}
-
- )
- }
-
- type formObj = {
- type: string
- name: string
- label: string
- description: string
- }
-
- interface Provider {
- name: string
- icon: string
- form: formObj[]
- }
-
- const ProviderForm = ({ provider }: { provider: Provider }) => {
- const [open, setOpen] = useState(false)
- const [active, setActive] = useState(
- providersFormState[`${provider.name.toLowerCase()}-active`]
- )
-
- console.log('panel active state', active)
-
- return (
- //
-
-
-
-
-
-
- //
- )
- }
-
- return (
-
-
- {AuthFormSchema.map((provider: Provider) => {
- return
- })}
-
-
- )
-}
-
-// type to do later..
-let domainInitialState: any = ['https://summersmuir.com', 'http://localhost:3000']
-
-// AuthFormSchema.map((provider) => {
-// domainInitialState[`${provider.name.toLowerCase()}-active`] =
-// provider.name == 'Email' ? true : false
-// domainInitialState[`${provider.name.toLowerCase()}-app-id`] = ''
-// domainInitialState[`${provider.name.toLowerCase()}-id-key`] = ''
-// })
-
-console.log('form domainInitialState', domainInitialState)
-
-// function domainsReducer(state, action) {
-// switch (action.type) {
-// case 'update':
-// let _state = []
-// _state.push(...state)
-// _state.push(action.values.domain)
-// console.log('new state', _state)
-// return _state
-// // case 'remove':
-// // _state.push(...state)
-// // _state = _state.filter((e: any) => e !== action.values)
-// // console.log('new state', _state)
-// // return _state
-// // case 'decrement':
-// // return { count: state.count - 1 }
-// default:
-// throw new Error()
-// }
-// }
-
-function domainsReducer(state, action) {
- let _state = []
- switch (action.type) {
- case 'update':
- _state.push(...state)
- _state.push(action.values.domain)
- console.log('new state', _state)
- return _state
- case 'remove':
- _state.push(...state)
- _state = _state.filter((e: any) => e !== action.values)
- console.log('new state', _state)
- return _state
- // case 'decrement':
- // return { count: state.count - 1 }
- default:
- throw new Error()
- }
-}
-
-const DomainsForm = () => {
- const [domainsFormState, dispatchDomainsForm] = useReducer(domainsReducer, domainInitialState)
-
- const [deleteOpen, setDeleteOpen] = useState(false)
- const [deleteLoading, setDeleteLoading] = useState(false)
- const [selectedDomain, setSelected] = useState('')
-
- console.log('domainsFormState from useState', domainsFormState)
-
- type formObj = {
- type: string
- name: string
- label: string
- description: string
- }
-
- interface Provider {
- name: string
- icon: string
- form: formObj[]
- }
-
- const DomainsForm = () => {
- // const [active, setActive] = useState(
- // domainsFormState[`${provider.name.toLowerCase()}-active`]
- // )
- const [open, setOpen] = useState(false)
-
- // console.log('panel active state', active)
-
- return (
- <>
-
-
-
Authorised domains
-
- Turn payment methods on and off in one click – no engineering time required.
-
-
- Use our guide to check which payment methods are compatible with your integration.
-
-
-
-
setOpen(!open)}
- header={
-
- }
- contentStyle={{ padding: 0 }}
- hideFooter
- >
-
-
-
- >
- )
- }
-
- console.log('RENDER DOMAINS')
-
- return (
-
-
-
- {domainsFormState.map((domain) => {
- return (
- <>
-
-
-
-
-
- {domain}
-
-
}
- onClick={() => {
- setSelected(domain)
- setDeleteOpen(true)
- }}
- >
- Remove
-
-
- >
- )
- })}
-
-
setDeleteOpen(!open)}
- header={
-
- }
- contentStyle={{ padding: 0 }}
- hideFooter
- >
-
-
-
- Are you sure you want to remove{' '}
- {selectedDomain}?
-
-
- This domain will no longer work with your Authentication configuration.
-
-
-
-
-
-
-
-
-
-
- )
-}
-
-const SmtpForm = () => {
- const [active, setActive] = useState(true)
-
- // panel
- const Panel = ({
- children,
- header,
- footer,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- footer?: React.ReactNode
- }) => (
-
- {header && (
-
- {header}
-
- )}
-
{children}
- {footer}
-
- )
-
- const Section = ({
- children,
- header,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- }) => (
-
- {header &&
{header}
}
- {children}
-
- )
-
- return (
- <>
-
- >
- )
-}
-
-const TemplatesForm = () => {
- const [active, setActive] = useState(true)
-
- // panel
- const Panel = ({
- children,
- header,
- footer,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- footer?: React.ReactNode
- }) => (
-
- {header && (
-
- {header}
-
- )}
-
{children}
- {footer}
-
- )
-
- const Section = ({
- children,
- header,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- }) => (
-
- {header &&
{header}
}
- {children}
-
- )
-
- return (
- <>
-
- >
- )
-}
-
-const Auth = () => {
- return (
-
-
-
-
-
- )
-}
-
-export function WholeForm() {
- return (
-
-
-
-
Sign-in method
-
-
-
-
General settings
-
- Turn payment methods on and off in one click – no engineering time required.
-
-
- Use our guide to check which payment methods are compatible with your integration.
-
-
-
-
-
Providers
-
- Turn payment methods on and off in one click – no engineering time required.
-
-
- Use our guide to check which payment methods are compatible with your integration.
-
-
-
-
-
-
-
- )
-}
-
-export default withAuth(observer(Auth))