Unverified Commit ca85b0af authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix: remove useless code (#1903)

parent a0a9461f
'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>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment