-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Created ReconnectBanner component and modify BuddyMatcher (#…
…713) Co-authored-by: Dunsin <[email protected]>
- Loading branch information
1 parent
49e432d
commit 01fd570
Showing
2 changed files
with
101 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import { PiPlugsLight } from 'react-icons/pi'; | ||
import { Link } from 'react-router-dom'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function ReconnectBanner({ handleReconnect }) { | ||
return ( | ||
<div className="flex flex-col w-full justify-center items-center h-full bg-primary"> | ||
<PiPlugsLight className="text-secondary text-8xl" /> | ||
<p className="text-lg text-center text-white">Sorry, it seems you're not connected</p> | ||
<div className="flex flex-col sm:flex-row gap-1 sm:gap-4 text-[1.5em] mt-4 font-medium items-center"> | ||
<button | ||
onClick={handleReconnect} | ||
className={ | ||
'hover:no-underline hover:text-black text-black w-[8em] h-[2.3em] rounded-[30px] bg-[#FF9F1C] flex flex-col items-center justify-center' | ||
} | ||
> | ||
Try again | ||
</button> | ||
<Link to="/" className="underline text-white hover:text-white text-lg"> | ||
Return Home | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
ReconnectBanner.propTypes = { | ||
handleReconnect: PropTypes.func, | ||
}; | ||
|