Skip to content

Commit

Permalink
fix record click
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlettmiss committed Nov 25, 2023
1 parent 7a365a3 commit f025608
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ui/src/pages/pet/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,6 @@ w-[15px] lg:h-[20px] lg:w-[20px] text-center text-xl font-bold ring-1 ring-slate
this.recordDialogRef?.show()
}

private setCreateRecordWithDate = (date: Date) => {
this.recordDialogRef?.setDataForCreationWithDate({}, date)
this.recordDialogRef?.show()
}

private setCreateWeightEntry = () => {
this.weightEntriesDialogRef?.setData(this.state.records)
this.weightEntriesDialogRef?.setRecordType(this.state.selectedLineModel)
Expand Down Expand Up @@ -492,12 +487,11 @@ w-[15px] lg:h-[20px] lg:w-[20px] text-center text-xl font-bold ring-1 ring-slate
return (
<div
key={r.id}
onClick={() => this.onViewRecordSelected(r)}
className={`flex grow flex-col md:flex-row border-b ${
r.administeredBy !== undefined ? "border-indigo-600" : "border-teal-600"
} justify-between last:border-b-0`}
>
<div className={"flex flex-col md:flex-row grow"}>
<div onClick={() => this.onViewRecordSelected(r)} className={"flex flex-col md:flex-row grow"}>
<p className={"flex grow w-full"}>{r.name}</p>
<div className={"flex grow w-full"}>{format(new Date(r.date!), "dd/MM/yyyy")}</div>
</div>
Expand Down

0 comments on commit f025608

Please sign in to comment.