Skip to content

Commit

Permalink
Merge pull request #3 from victorlpgazolli/add/author-contact
Browse files Browse the repository at this point in the history
[add] author github link
  • Loading branch information
victorlpgazolli authored Jul 29, 2021
2 parents bbcd363 + 5a82324 commit 5c82d17
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/Author/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, { memo } from 'react'
import {
shell
} from "electron"
import { Container } from './styles'


const Author = () => {
const openAuthorGithub = () => {
shell.openExternal("https://github.com/victorlpgazolli/")
}
return (
<Container>
<button onClick={openAuthorGithub}>my github</button>
</Container>
)
}

export default memo(Author)
18 changes: 18 additions & 0 deletions src/components/Author/styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import styled from 'styled-components'

export const Container = styled.div(props => ({
position: "absolute",
bottom: 0,
width: "100%",
flex: 1,
display: "flex",
justifyContent: "flex-start",
padding: 20,
flexDirections: "row",
"& button": {
border: "none",
background: "none",
color: props.theme.colors.grey,
cursor: "pointer",
}
}))
2 changes: 2 additions & 0 deletions src/screen/ConnectionsList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Connection from './Connection'
import ConnectionFormModal from './ConnectionFormModal'
import { Container, Connections } from './styles'
import { connections } from '../../store/connections'
import Author from '../../components/Author'

const ConnectionsList = () => {
const [isCreateModalOpen, toggleCreateModalOpen] = useToggle(false);
Expand Down Expand Up @@ -42,6 +43,7 @@ const ConnectionsList = () => {
))}
</ul>
</Connections>
<Author />
</Container>

<ConnectionFormModal
Expand Down

0 comments on commit 5c82d17

Please sign in to comment.