换成 svg icon
This commit is contained in:
parent
b4c98198ca
commit
965296f9c3
|
@ -13,8 +13,6 @@
|
|||
background: transparent;
|
||||
border: 0;
|
||||
float: right;
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import React from 'react';
|
||||
import {ClassNamesFn, themeable} from '../theme';
|
||||
import {Icon} from './icons';
|
||||
|
||||
export interface AlertProps {
|
||||
level: 'danger' | 'info' | 'success' | 'warning';
|
||||
|
@ -70,7 +71,7 @@ export class Alert extends React.Component<AlertProps, AlertState> {
|
|||
onClick={this.handleClick}
|
||||
type="button"
|
||||
>
|
||||
<span>×</span>
|
||||
<Icon icon="close" className="icon" />
|
||||
</button>
|
||||
) : null}
|
||||
{children}
|
||||
|
|
Loading…
Reference in New Issue