|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
import { useAuth } from '../hooks/AuthProvider';
|
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
import { silverUsersClient } from '@/client/api';
|
|
|
-import { App, Card, List, Button, Tag, Modal, Form, Input, Select, Upload } from 'antd';
|
|
|
+import { Card, List, Button, Tag, Modal, Form, Input, Select, Upload } from 'antd';
|
|
|
import { PlusOutlined, UploadOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
|
import { toast } from 'react-toastify';
|
|
|
import type { UploadProps } from 'antd';
|
|
|
@@ -77,7 +77,7 @@ const SkillsPage: React.FC = () => {
|
|
|
const newCertificates = [...certificates, values];
|
|
|
await updateProfile({ certificates: newCertificates });
|
|
|
setCertificates(newCertificates);
|
|
|
- message.success('证书添加成功');
|
|
|
+ toast.success('证书添加成功');
|
|
|
} catch (error) {
|
|
|
toast.error('证书添加失败');
|
|
|
}
|
|
|
@@ -88,7 +88,7 @@ const SkillsPage: React.FC = () => {
|
|
|
const newCertificates = certificates.filter((_, i) => i !== index);
|
|
|
await updateProfile({ certificates: newCertificates });
|
|
|
setCertificates(newCertificates);
|
|
|
- message.success('证书删除成功');
|
|
|
+ toast.success('证书删除成功');
|
|
|
} catch (error) {
|
|
|
toast.error('证书删除失败');
|
|
|
}
|