Replace Twitter icon
This commit is contained in:
@@ -2,12 +2,9 @@ import PropTypes from 'prop-types'
|
||||
import Link from 'next/link'
|
||||
import Image from 'next/image'
|
||||
import {signIn} from 'next-auth/react'
|
||||
import {useTheme} from '@mui/material/styles'
|
||||
import Button from '@mui/material/Button'
|
||||
|
||||
export default function LoginProvider({id, title, width, height, callbackUrl}) {
|
||||
const theme = useTheme()
|
||||
|
||||
const hanleClick = event => {
|
||||
event.preventDefault()
|
||||
signIn(id, {
|
||||
@@ -22,7 +19,7 @@ export default function LoginProvider({id, title, width, height, callbackUrl}) {
|
||||
width={width}
|
||||
height={height}
|
||||
alt={title}
|
||||
src={`/images/${id === 'github' ? `${id}-${theme.palette.mode}` : id}.svg`}
|
||||
src={`/images/${id === 'twitter' ? 'x' : id}.svg`}
|
||||
/>
|
||||
} onClick={hanleClick}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user