chore: cycle sidebar content updated (#639)

This commit is contained in:
Aaryan Khandelwal 2023-03-31 03:21:37 +05:30 committed by GitHub
parent 0c39f0c563
commit 448f383ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -377,7 +377,9 @@ export const CycleDetailsSidebar: React.FC<Props> = ({
<div className="flex items-center gap-1">
<ExclamationIcon height={14} width={14} />
<span className="text-xs italic text-gray-500">
Invalid date. Please enter valid date.
{cycleStatus === "upcoming"
? "Cycle is yet to start."
: "Invalid date. Please enter valid date."}
</span>
</div>
)}
@ -433,7 +435,7 @@ export const CycleDetailsSidebar: React.FC<Props> = ({
<div
className={`relative flex h-full w-full flex-col ${open ? "" : "flex-row"}`}
>
<div className="flex w-full items-center justify-between gap-2 ">
<div className="flex w-full items-center justify-between gap-2">
<div className="flex items-center justify-start gap-2 text-sm">
<span className="font-medium text-gray-500">Other Information</span>
</div>

View File

@ -78,7 +78,9 @@ const CustomErrorComponent = () => {
</p>
</div>
<div className="flex items-center gap-2 justify-center">
<PrimaryButton size="md">Go back</PrimaryButton>
<PrimaryButton size="md" onClick={() => router.back()}>
Go back
</PrimaryButton>
<SecondaryButton size="md" onClick={handleSignOut}>
Sign out
</SecondaryButton>