fix: remove useless code (#1903)

This commit is contained in:
zxhlyh 2024-01-04 11:10:20 +08:00 committed by GitHub
parent a0a9461f79
commit ca85b0afbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,17 @@
'use client'
import type { FC } from 'react'
import React from 'react'
import { useContext } from 'use-context-selector'
import I18n from '@/context/i18n'
import type { ProviderEnum } from '@/app/components/header/account-setting/model-page/declarations'
import ProviderConfig from '@/app/components/header/account-setting/model-page/configs'
export type IProviderNameProps = {
provideName: ProviderEnum
provideName: string
}
const ProviderName: FC<IProviderNameProps> = ({
provideName,
}) => {
const { locale } = useContext(I18n)
return (
<span>
{ProviderConfig[provideName]?.selector?.name[locale]}
{provideName}
</span>
)
}