Skip to content

Commit

Permalink
home button link added
Browse files Browse the repository at this point in the history
  • Loading branch information
SMNAFI committed Nov 29, 2022
1 parent e756de7 commit 6caa265
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/MainHero/MainHero.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import { Container } from 'react-bootstrap'
import { Link } from 'react-router-dom'
import Header from '../Header'
import HeaderFixed from '../HeaderFixed'
import './MainHero.css'
Expand All @@ -16,7 +17,9 @@ const MainHero = () => {
<h3 className='sub-title mt-4'>
Connecting blood donors with recipients
</h3>
<button className='btn-find-blood mt-5'>Find blood</button>
<Link to='/donars'>
<button className='btn-find-blood mt-5'>Find Donars</button>
</Link>
</div>
</div>
</Container>
Expand Down
5 changes: 4 additions & 1 deletion src/components/SaveLives.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import { Link } from 'react-router-dom'
import './SaveLives.css'

const SaveLives = () => {
Expand All @@ -8,7 +9,9 @@ const SaveLives = () => {
<h4 className='text-center text-white mt-4'>
Become a donor or request for blood and help save lives
</h4>
<button className='btn-find-blood mt-5'>Register</button>
<Link to='/register'>
<button className='btn-find-blood mt-5'>Register</button>
</Link>
</section>
)
}
Expand Down

0 comments on commit 6caa265

Please sign in to comment.