mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-04 16:53:09 +00:00
Switch from prettier to oxfmt (#33844)
* Switch from prettier to oxfmt * Make knip happy * Make knip happy * Apply suggestion from @t3chguy * Rename .oxfmtrc.json to .oxfmtrc.jsonc * Make oxfmt happier
This commit is contained in:
committed by
GitHub
parent
5d93490547
commit
eca2f39dbb
@@ -76,8 +76,8 @@ export default abstract class ScrollableBaseModal<
|
||||
<FocusLock
|
||||
returnFocus={true}
|
||||
lockProps={{
|
||||
onKeyDown: this.onKeyDown,
|
||||
role: "dialog",
|
||||
"onKeyDown": this.onKeyDown,
|
||||
"role": "dialog",
|
||||
["aria-labelledby"]: "mx_CompoundDialog_title",
|
||||
|
||||
// Like BaseDialog, we'll just point this at the whole content
|
||||
|
||||
@@ -31,7 +31,7 @@ interface IProps {
|
||||
// An array of EventTiles to render when expanded
|
||||
"children": ReactNode[] | null;
|
||||
// Called when the event list expansion is toggled
|
||||
onToggle?(this: void): void;
|
||||
"onToggle"?(this: void): void;
|
||||
// The layout currently used
|
||||
"layout"?: Layout;
|
||||
"data-testid"?: string;
|
||||
|
||||
@@ -104,10 +104,8 @@ const DeviceDetails: React.FC<Props> = ({
|
||||
],
|
||||
},
|
||||
]
|
||||
.map((section) =>
|
||||
// filter out falsy values
|
||||
({ ...section, values: section.values.filter((row) => !!row.value) }),
|
||||
)
|
||||
.map((section) => // filter out falsy values
|
||||
({ ...section, values: section.values.filter((row) => !!row.value) }))
|
||||
.filter(
|
||||
(section) =>
|
||||
// then filter out sections with no values
|
||||
|
||||
Reference in New Issue
Block a user