mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-03 12:49:30 +00:00
Tidy up React JSX to make Sonar happier (#33946)
* Eradicate unused React props * Fix unmatched defaultProps * Remove spurious React fragments * Remove unused JSX * Remove unused React state field * Remove unused React state field * Update snapshots
This commit is contained in:
committed by
GitHub
parent
d1dfd3a7ca
commit
a26732b040
@@ -69,14 +69,12 @@ const BeaconStatus: React.FC<Props & HTMLProps<HTMLDivElement>> = ({
|
||||
)}
|
||||
{displayStatus === BeaconDisplayStatus.Active && beacon && (
|
||||
<>
|
||||
<>
|
||||
<span className="mx_BeaconStatus_label">{label}</span>
|
||||
{displayLiveTimeRemaining ? (
|
||||
<LiveTimeRemaining beacon={beacon} />
|
||||
) : (
|
||||
<BeaconExpiryTime beacon={beacon} />
|
||||
)}
|
||||
</>
|
||||
<span className="mx_BeaconStatus_label">{label}</span>
|
||||
{displayLiveTimeRemaining ? (
|
||||
<LiveTimeRemaining beacon={beacon} />
|
||||
) : (
|
||||
<BeaconExpiryTime beacon={beacon} />
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user