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 739f748 commit af3faaa
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions pages/index/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import Head from 'next/head';
import NavBar from '../../components/layout/nav';
import { useMediaQuery } from 'react-responsive';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { Skeleton, Card, Avatar, message, Button } from 'antd';
import { Skeleton, Card, Avatar, message, Tooltip, Button } from 'antd';
import { EditOutlined, EllipsisOutlined, SettingOutlined, LinkOutlined, CopyOutlined } from '@ant-design/icons';
const { Meta } = Card;


const Contact = () => {
const isSmallScreen = useMediaQuery({ maxDeviceWidth: 575.98 })
const [header, setHeader] = useState("การติดต่อหน่วยงาน")
Expand Down Expand Up @@ -65,6 +66,10 @@ const Contact = () => {
message.success('Copied.');
}

const text = <span>prompt text</span>;

const buttonWidth = 70;

const onConfirm = (order) => {
setStatus(order)
}
Expand Down Expand Up @@ -115,13 +120,21 @@ const Contact = () => {
<Card
style={{ width: 300, marginTop: 15 }}
actions={[
<a href="https://www.google.com/" target="_blank">
<LinkOutlined key="link"/>
</a>,
<CopyToClipboard text={"Copy"} >
<CopyOutlined key="Copy" onClick={success} />
</CopyToClipboard>,
<EllipsisOutlined key="ellipsis" />,

<Tooltip placement="bottom" title={text}>
<a href="https://www.google.com/" target="_blank">
<LinkOutlined key="link" />
</a>
</Tooltip>,

<Tooltip placement="bottom" title={text}>
<CopyToClipboard text={"Copy"} >
<CopyOutlined key="Copy" onClick={success} />
</CopyToClipboard>
</Tooltip>,

<EllipsisOutlined key="ellipsis" />


]}
>
Expand Down

1 comment on commit af3faaa

@vercel
Copy link

@vercel vercel bot commented on af3faaa 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.