Skip to content

Commit

Permalink
Make LinkCopyButton
Browse files Browse the repository at this point in the history
  • Loading branch information
GBS-Skile committed Jun 19, 2019
1 parent b78f5a5 commit 6950b29
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/atoms/Button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Button = styled.button`
padding: 4px 15px;
width: 100%;
max-width: 224px;
z-index: 1;
`

const LightButton = styled(Button)`
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/atoms/Graph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const Wrapper = styled.div`
padding-top: 100%;
width: 100%;
position: relative;
z-index: -1;
`

const Content = styled.div`
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/atoms/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const Wrapper = styled.div`
position: fixed;
top: 0;
width: 100%;
z-index: 2;
`

const Header = (props) => (
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/pages/RoomPage/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
import { CopyToClipboard } from 'react-copy-to-clipboard'

import { Block, Button, Graph, List, LinkButton, ListItem, Header } from 'components'
import { MemberList, PaymentList } from 'containers'
Expand All @@ -17,6 +18,7 @@ const SettingButton = styled(LinkButton)`
height: 32px;
width: 32px;
cursor: pointer;
z-index: 1;
`

const RoomPage = props => {
Expand Down Expand Up @@ -47,8 +49,11 @@ const RoomPage = props => {

return (
<div>
<Header />
<Header />
<Block transparent>
<CopyToClipboard text={window.location.href} onCopy={() => {}}>
<Button>링크 복사</Button>
</CopyToClipboard>
<Graph graph={graph} events={events} />
<SettingButton to={`/room/${room.url}/setting/`} />
</Block>
Expand Down

0 comments on commit 6950b29

Please sign in to comment.