Replace Twitter icon

This commit is contained in:
2023-07-24 22:38:24 +04:00
parent 0019056d31
commit 8c4022e2e7
5 changed files with 19 additions and 57 deletions
+1 -4
View File
@@ -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}
>