浏览代码

fix: remove useless code (#1903)

tags/0.4.3
zxhlyh 1年前
父节点
当前提交
ca85b0afbe
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入8 次删除
  1. 2
    8
      web/app/components/app/configuration/config-model/provider-name.tsx

+ 2
- 8
web/app/components/app/configuration/config-model/provider-name.tsx 查看文件

@@ -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>
)
}

正在加载...
取消
保存