优化管理端前端代码

pull/82/head^2
awenes 2024-04-04 22:26:16 +08:00
parent a60d6b670c
commit c8e2c5ef19
9 changed files with 15 additions and 15 deletions

View File

@ -122,7 +122,7 @@ export default () => {
},
avatar: {
search: false,
render: (text, row) => {
render: (_text, row) => {
return (
<Avatar key={row.id} shape="square" size={50} src={ICON_LIST[row.provider]} />
);
@ -136,10 +136,10 @@ export default () => {
},
content: {
search: false,
render: (text, row) => [<ListContent key="context" {...row} />],
render: (_text, row) => [<ListContent key="context" {...row} />],
},
actions: {
render: (text, row) => [
render: (_text, row) => [
<Fragment key={'status'}>
{row.enabled ? (
<Popconfirm

View File

@ -69,7 +69,7 @@ export default (props: { id: string }) => {
width: 80,
align: 'center',
fixed: 'right',
render: (text, record) => [
render: (_text, record) => [
<Popconfirm
title={intl.formatMessage({
id: 'pages.account.user_detail.app_account.columns.option.popconfirm.title',

View File

@ -86,7 +86,7 @@ export default (props: { userId: string }) => {
dataIndex: 'eventStatus',
search: false,
align: 'center',
render: (text: any, row: any) => (
render: (_text: any, row: any) => (
<Space>
{row.eventStatus === EventStatus.success && (
<Tag color="#87d068">{intl.formatMessage({ id: 'app.success' })}</Tag>

View File

@ -266,7 +266,7 @@ export default (props: { appId: string }) => {
width: 80,
align: 'center',
fixed: 'right',
render: (text, record) => [
render: (_text, record) => [
<Popconfirm
title={intl.formatMessage({
id: 'pages.app.config.detail.items.login_access.access_policy.columns.option.popconfirm.title',

View File

@ -66,7 +66,7 @@ export default (props: { appId: string; protocol: AppProtocolType | string }) =>
width: 80,
align: 'center',
fixed: 'right',
render: (text, record) => [
render: (_text, record) => [
<Popconfirm
title={intl.formatMessage({
id: 'pages.app.config.detail.items.login_access.app_account.columns.option.popconfirm.title',

View File

@ -204,7 +204,7 @@ const List = (props: { category: IdentityProviderCategory }) => {
},
avatar: {
search: false,
render: (text, row) => {
render: (_text, row) => {
return <Avatar key={row.id} shape="square" size={50} src={ICON_LIST[row.type]} />;
},
},
@ -216,10 +216,10 @@ const List = (props: { category: IdentityProviderCategory }) => {
},
content: {
search: false,
render: (text, row) => <ListContent key="context" {...row} />,
render: (_text, row) => <ListContent key="context" {...row} />,
},
actions: {
render: (text, row) => [
render: (_text, row) => [
<Fragment key={'status'}>
{row.enabled ? (
<Popconfirm

View File

@ -144,7 +144,7 @@ export default () => {
width: 60,
align: 'center',
fixed: 'right',
render: (text: any, row: SessionList) => {
render: (_text: any, row: SessionList) => {
return [
<Popconfirm
title={intl.formatMessage({ id: 'pages.other.session.delete.confirm' })}

View File

@ -202,7 +202,7 @@ export const Administrator = () => {
valueType: 'option',
width: 140,
fixed: 'right',
render: (text, row) => {
render: (_text, row) => {
return [
<a
target="_blank"

View File

@ -95,7 +95,7 @@ export default (props: { visible: boolean }) => {
dataSource={dataSource}
metas={{
title: {
render: (text, row) => [
render: (_text, row) => [
<p
key={row.name}
onClick={() => {
@ -109,7 +109,7 @@ export default (props: { visible: boolean }) => {
},
description: {},
subTitle: {
render: (text, row) => {
render: (_text, row) => {
return (
<Space size={0}>
{row.custom && (
@ -124,7 +124,7 @@ export default (props: { visible: boolean }) => {
},
},
actions: {
render: (text, row) => {
render: (_text, row) => {
return [
<a
key="config"