-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move reconnect banner to a new component #692
Changes from all commits
2f0e2a6
aa49715
8d84014
b0901c8
e880afa
823f687
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Dun-sin marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't think you ran prettier for this file, do you have prettier installed on your VSCode(it should automatically do this on each save) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { PiPlugsLight } from 'react-icons/pi'; | ||
import { Link } from 'react-router-dom'; | ||
const 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.isRequired, | ||
}; | ||
export default ReconnectBanner; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. still need to remove this |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this comment