Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config-ui): missed style for github check icon #6821

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions config-ui/src/plugins/register/github/connection-fields/token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@
*/

import { useEffect, useState } from 'react';
import {
CloseOutlined,
PlusOutlined,
CheckCircleOutlined,
WarningOutlined,
CloseCircleOutlined,
} from '@ant-design/icons';
import { CloseOutlined, PlusOutlined, CheckCircleFilled, WarningFilled, CloseCircleFilled } from '@ant-design/icons';
import { Input, Button } from 'antd';

import API from '@/api';
Expand Down Expand Up @@ -88,6 +82,7 @@ export const Token = ({
return {
value: token,
isValid: false,
status: 'error',
};
}
};
Expand Down Expand Up @@ -170,9 +165,9 @@ export const Token = ({
{status && (
<S.Alert>
<h4>
{status === 'success' && <CheckCircleOutlined color="#4DB764" />}
{status === 'warning' && <WarningOutlined color="#F4BE55" />}
{status === 'error' && <CloseCircleOutlined color="#E34040" />}
{status === 'success' && <CheckCircleFilled style={{ color: '#4DB764' }} />}
{status === 'warning' && <WarningFilled style={{ color: '#F4BE55' }} />}
{status === 'error' && <CloseCircleFilled style={{ color: '#E34040' }} />}
<span style={{ marginLeft: 8 }}>Token Permissions</span>
</h4>
{status === 'success' && <p>All required fields are checked.</p>}
Expand Down
Loading