From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 21 一月 2022 17:21:25 +0800
Subject: [PATCH] 2022-01-21

---
 src/views/design/header/versions/index.jsx |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/design/header/versions/index.jsx b/src/views/design/header/versions/index.jsx
index 6013932..b2883da 100644
--- a/src/views/design/header/versions/index.jsx
+++ b/src/views/design/header/versions/index.jsx
@@ -1,6 +1,7 @@
 import React, {Component} from 'react'
 import { is, fromJS } from 'immutable'
-import { Modal, notification, Timeline, Icon, Button, Typography } from 'antd'
+import { Modal, notification, Timeline, Button, Typography } from 'antd'
+import { ClockCircleOutlined, SyncOutlined, WarningOutlined, CheckCircleOutlined } from '@ant-design/icons'
 import moment from 'moment'
 
 import Api from '@/api'
@@ -423,14 +424,14 @@
         >
           <Timeline>
             {versions && versions.map(item => {
-              let icon = <Icon type="clock-circle-o" style={{ fontSize: '16px' }} />
+              let icon = <ClockCircleOutlined style={{ fontSize: '16px' }} />
               if (item.status === 'loading') {
-                icon = <Icon type="sync" spin style={{ fontSize: '16px' }} />
+                icon = <SyncOutlined spin style={{ fontSize: '16px' }} />
               } else if (item.status === 'done') {
                 if (item.warning) {
-                  icon = <Icon type="warning" style={{ fontSize: '16px', color: 'orange' }}/>
+                  icon = <WarningOutlined style={{ fontSize: '16px', color: 'orange' }}/>
                 } else {
-                  icon = <Icon type="check-circle" style={{ fontSize: '16px', color: '#52c41a' }} />
+                  icon = <CheckCircleOutlined style={{ fontSize: '16px', color: '#52c41a' }} />
                 }
               }
               return (

--
Gitblit v1.8.0