Skip to content
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

fix: countdown displaying hour issue and drop down menu overlap #357

Merged
merged 4 commits into from
Apr 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pages/AppMarketplace/GetBitz/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ export const GetBitz = () => {
// Render a countdown
return (
<span>
{props.hours > 0 ? (props.hours + props.hours === 1 ? " Hour " : " Hours ") : ""}
{props.minutes > 0 ? props.minutes + " Min : " : ""} {props.seconds} Sec
{props.hours > 0 ? <>{`${props.hours} ${props.hours === 1 ? " Hour " : " Hours "}`}</> : ""}
{props.minutes > 0 ? props.minutes + " Min " : ""} {props.seconds} Sec
</span>
);
}
Expand All @@ -443,9 +443,9 @@ export const GetBitz = () => {
return <> </>;
} else {
return (
<div className="absolute z-10 w-full h-full rounded-[3rem] bg-black/90 ">
<div className="absolute z-5 w-full h-full rounded-[3rem] bg-black/90 ">
<div className="flex w-full h-full items-center justify-center">
<div className="text-3xl md:text-5xl flex flex-col items-center justify-center ">
<div className="text-3xl md:text-5xl flex flex-col items-center justify-center text-white ">
<p className="my-4 text-xl md:text-3xl "> You can play again in: </p>{" "}
{props.hours > 0 ? <>{`${props.hours} ${props.hours === 1 ? " Hour " : " Hours "}`}</> : ""}
{props.minutes > 0 ? props.minutes + " Min " : ""} {props.seconds} Sec
Expand Down