mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-05 22:03:42 +08:00
fix icon
Signed-off-by: wozulong <>
This commit is contained in:
@@ -1 +1 @@
|
|||||||
module.exports = require("@so1ve/prettier-config");
|
module.exports = require('@so1ve/prettier-config');
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ const LinuxDoIcon = (props) => {
|
|||||||
viewBox='0 0 24 24'
|
viewBox='0 0 24 24'
|
||||||
version='1.1'
|
version='1.1'
|
||||||
xmlns='http://www.w3.org/2000/svg'
|
xmlns='http://www.w3.org/2000/svg'
|
||||||
width='16'
|
width='1em'
|
||||||
height='16'
|
height='1em'
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
@@ -21,11 +21,7 @@ const LinuxDoIcon = (props) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return <Icon svg={<CustomIcon />} />;
|
||||||
<div>
|
|
||||||
<Icon svg={<CustomIcon />} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default LinuxDoIcon;
|
export default LinuxDoIcon;
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ const LoginForm = () => {
|
|||||||
<Button
|
<Button
|
||||||
type='primary'
|
type='primary'
|
||||||
icon={<IconGithubLogo />}
|
icon={<IconGithubLogo />}
|
||||||
|
style={{ margin: '0 5px' }}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
onGitHubOAuthClicked(status.github_client_id)
|
onGitHubOAuthClicked(status.github_client_id)
|
||||||
}
|
}
|
||||||
@@ -237,7 +238,7 @@ const LoginForm = () => {
|
|||||||
<Button
|
<Button
|
||||||
type='primary'
|
type='primary'
|
||||||
icon={<LinuxDoIcon />}
|
icon={<LinuxDoIcon />}
|
||||||
style={{ color: '#000' }}
|
style={{ color: '#000', margin: '0 5px' }}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
onLinuxDoOAuthClicked(status.linuxdo_client_id)
|
onLinuxDoOAuthClicked(status.linuxdo_client_id)
|
||||||
}
|
}
|
||||||
@@ -248,7 +249,10 @@ const LoginForm = () => {
|
|||||||
{status.wechat_login ? (
|
{status.wechat_login ? (
|
||||||
<Button
|
<Button
|
||||||
type='primary'
|
type='primary'
|
||||||
style={{ color: 'rgba(var(--semi-green-5), 1)' }}
|
style={{
|
||||||
|
color: 'rgba(var(--semi-green-5), 1)',
|
||||||
|
margin: '0 5px',
|
||||||
|
}}
|
||||||
icon={<Icon svg={<WeChatIcon />} />}
|
icon={<Icon svg={<WeChatIcon />} />}
|
||||||
onClick={onWeChatLoginClicked}
|
onClick={onWeChatLoginClicked}
|
||||||
/>
|
/>
|
||||||
@@ -258,6 +262,8 @@ const LoginForm = () => {
|
|||||||
|
|
||||||
{status.telegram_oauth ? (
|
{status.telegram_oauth ? (
|
||||||
<TelegramLoginButton
|
<TelegramLoginButton
|
||||||
|
className='semi-button semi-button-with-icon semi-button-with-icon-only'
|
||||||
|
buttonSize='medium'
|
||||||
dataOnauth={onTelegramLoginClicked}
|
dataOnauth={onTelegramLoginClicked}
|
||||||
botName={status.telegram_bot_name}
|
botName={status.telegram_bot_name}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user