From da34633b25d16359cd91a656acad5e811f9972b7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 14 三月 2023 18:09:54 +0800 Subject: [PATCH] 2023-03-14 --- src/components/paste/index.jsx | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/paste/index.jsx b/src/components/paste/index.jsx index 4760c22..bf998d5 100644 --- a/src/components/paste/index.jsx +++ b/src/components/paste/index.jsx @@ -1,9 +1,9 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Icon, Modal, notification } from 'antd' +import { Modal, notification } from 'antd' +import { SnippetsOutlined } from '@ant-design/icons' import asyncComponent from '@/utils/asyncComponent' -import './index.scss' const PasteForm = asyncComponent(() => import('@/templates/zshare/pasteform')) @@ -15,10 +15,6 @@ state = { visible: false - } - - handleMenuClick = () => { - this.setState({visible: true}) } pasteSubmit = () => { @@ -52,7 +48,7 @@ return ( <div style={{display: 'inline-block'}}> - <Icon type="snippets" style={{color: 'purple'}} onClick={() => {this.setState({visible: true})}} /> + <SnippetsOutlined style={{color: 'purple'}} onClick={() => {this.setState({visible: true})}} /> <Modal title="绮樿创" visible={visible} -- Gitblit v1.8.0