Skip to content

Commit

Permalink
modify trailing text
Browse files Browse the repository at this point in the history
  • Loading branch information
rash-27 committed Mar 20, 2024
1 parent 574ae22 commit 38c34ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const PatientRegister = (props: PatientRegisterProps) => {
if (!status.aborted) {
if (res?.ok && data) {
setPatientName(data.name || "");
if (data.year_of_birth) {
if (!data.date_of_birth) {
setAgeInputType("age");
}
const formData = {
Expand Down Expand Up @@ -1383,11 +1383,11 @@ export const PatientRegister = (props: PatientRegisterProps) => {
{...field("age")}
errorClassName="hidden"
trailing={
<p className="pr-12 text-xs text-gray-700 sm:pr-16 sm:text-sm">
<span className="inline md:hidden lg:inline">
<p className="absolute right-16 text-xs text-gray-700 sm:text-sm">
<p className="hidden sm:inline min-[768px]:hidden lg:inline">
{field("age").value !== "" &&
"Year of Birth: "}
</span>
"Year_of_Birth:"}
</p>
<span className="font-bold">
{field("age").value !== "" &&
new Date().getFullYear() -
Expand Down

0 comments on commit 38c34ce

Please sign in to comment.