Skip to content

Commit

Permalink
💄Contact
Browse files Browse the repository at this point in the history
  • Loading branch information
noeypatt committed Mar 31, 2020
1 parent 4f24b6e commit a6f3794
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"react-apexcharts": "^1.3.3",
"react-bootstrap-table": "^4.3.1",
"react-circle": "^1.1.1",
"react-copy-to-clipboard": "^5.0.2",
"react-countup": "^4.2.2",
"react-dom": "^16.9.0",
"react-google-charts": "^3.0.15",
Expand Down
15 changes: 12 additions & 3 deletions pages/index/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React, { useState, useEffect } from 'react';
import Head from 'next/head';
import NavBar from '../../components/layout/nav';
import { useMediaQuery } from 'react-responsive';
import { Skeleton, Switch, Card, Avatar } from 'antd';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { Skeleton, Card, Avatar, message, Button } from 'antd';
import { EditOutlined, EllipsisOutlined, SettingOutlined, HomeOutlined, CopyOutlined } from '@ant-design/icons';
const { Meta } = Card;

Expand Down Expand Up @@ -57,6 +58,10 @@ const Contact = () => {
}, 1500)
}, [])

const success = () => {
message.success('This is a success message');
}

const onConfirm = (order) => {
setStatus(order)
}
Expand Down Expand Up @@ -107,8 +112,12 @@ const Contact = () => {
<Card
style={{ width: 300, marginTop: 15 }}
actions={[
<HomeOutlined key="home" />,
<CopyOutlined key="Copy" />,
<a href="https://www.google.com/">
<HomeOutlined key="home" />
</a>,
<CopyToClipboard text={"Copy"} >
<CopyOutlined key="Copy" onClick={success} />
</CopyToClipboard>,
<EllipsisOutlined key="ellipsis" />,

]}
Expand Down

1 comment on commit a6f3794

@vercel
Copy link

@vercel vercel bot commented on a6f3794 Mar 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.