Skip to content

Commit

Permalink
Update source/page/Clinic/index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery authored Jan 20, 2024
1 parent a2fb928 commit e14cce7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/page/Clinic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ export class ClinicList extends CardsPage<Clinic> {
contacts,
remark,
...rest
}: Clinic) => {
const isLive = getIsLive(startTime, endTime);
return <Card
}: Clinic) => (
<Card
className="mx-auto mb-4 mx-sm-1"
style={{ minWidth: '20rem', maxWidth: '20rem' }}
title={
Expand All @@ -41,8 +40,9 @@ export class ClinicList extends CardsPage<Clinic> {
)
}
>
{getIsLive(startTime, endTime) && <div className="clinic-card__live-label">正在接诊</div>}
<p>
每日接诊起止时间:{startTime} ~ {endTime}{isLive?<span>正在接诊</span>:null}
每日接诊起止时间:{startTime} ~ {endTime}
</p>
{contacts[0] && (
<ol className="list-unstyled">
Expand All @@ -60,5 +60,5 @@ export class ClinicList extends CardsPage<Clinic> {

<AuditBar scope="clinic" model={clinic} {...rest} />
</Card>
};
);
}

0 comments on commit e14cce7

Please sign in to comment.