Skip to content

Commit

Permalink
feat: add NavBar component
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecego committed Feb 12, 2024
1 parent 515af9f commit 19f3420
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions app/javascript/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react'
import { Link } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { Button, Divider } from 'antd'

const NavBar = () => {
const { t } = useTranslation()

return (
<ul style={{
display: 'flex', gap: '4px', flexWrap: 'wrap',
justifyContent: 'center', alignItems: 'center', padding: '20px' }}>
<li>
<Button type="link">
<Link to='candidates'>
<p>{t('navBar.allCandidates')}</p>
</Link>
</Button>
</li>
<Divider type="vertical" />
<li>
<Button type="link">
<Link to='candidates/new'>
<p>{t('navBar.newCandidate')}</p>
</Link>
</Button>
</li>
</ul>
)
}

export default NavBar

0 comments on commit 19f3420

Please sign in to comment.