Remove Google provider
This commit is contained in:
@@ -18,22 +18,11 @@ import {
|
|||||||
} from '@mui/material'
|
} from '@mui/material'
|
||||||
import {Visibility, VisibilityOff} from '@mui/icons-material'
|
import {Visibility, VisibilityOff} from '@mui/icons-material'
|
||||||
import MuiAlert from '@mui/material/Alert'
|
import MuiAlert from '@mui/material/Alert'
|
||||||
import {Google} from '@icons-pack/react-simple-icons'
|
|
||||||
|
|
||||||
import {validateEmail} from '../../lib/utils/emails'
|
import {validateEmail} from '../../lib/utils/emails'
|
||||||
|
|
||||||
import LoginProvider from './login-provider'
|
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000'
|
||||||
|
|
||||||
const PROVIDERS = [
|
|
||||||
{
|
|
||||||
id: 'google',
|
|
||||||
title: 'Google',
|
|
||||||
icon: <Google />
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
const Alert = forwardRef(function Alert(props, ref) {
|
const Alert = forwardRef(function Alert(props, ref) {
|
||||||
return <MuiAlert ref={ref} elevation={6} variant='filled' {...props} />
|
return <MuiAlert ref={ref} elevation={6} variant='filled' {...props} />
|
||||||
})
|
})
|
||||||
@@ -169,14 +158,6 @@ function Koneksyon({detay, tit, soutit, titGwose, chimen}) {
|
|||||||
|
|
||||||
{loading && <LinearProgress size={24} style={{width: '100%', marginTop: '1em'}} />}
|
{loading && <LinearProgress size={24} style={{width: '100%', marginTop: '1em'}} />}
|
||||||
|
|
||||||
<Box sx={{textAlign: 'center', marginBlock: 3}}>
|
|
||||||
{PROVIDERS.map(({id, title, icon}) => (
|
|
||||||
<Box key={id} marginTop={1}>
|
|
||||||
<LoginProvider id={id} title={title} icon={icon} callbackUrl={`${siteUrl}${chimen}`} />
|
|
||||||
</Box>
|
|
||||||
))}
|
|
||||||
</Box>
|
|
||||||
|
|
||||||
{detay && (
|
{detay && (
|
||||||
<Box sx={{textAlign: 'center', marginTop: 3}}>
|
<Box sx={{textAlign: 'center', marginTop: 3}}>
|
||||||
<Typography display='block' variant='h6' component='h2'>
|
<Typography display='block' variant='h6' component='h2'>
|
||||||
|
|||||||
Reference in New Issue
Block a user