mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
style(labs): format the filter rail files
This commit is contained in:
1 parent
c59f4d7e65
commit
ba3ee968c7
11 files changed
+74
-45
No files matched your search
@@ -112,10 +112,7 @@ function FilterRail({ syncToUrl = true }: { syncToUrl?: boolean }) {
|
||||
<button
|
||||
type="button"
|
||||
onClick={() =>
|
||||
patchFilters(
|
||||
{ type: "PULSE" },
|
||||
{ mode: "replace", afterPaint: true },
|
||||
)
|
||||
patchFilters({ type: "PULSE" }, { mode: "replace", afterPaint: true })
|
||||
}
|
||||
>
|
||||
Defer replace type
|
||||
@@ -208,7 +205,9 @@ describe("useUrlFilterSync with FilterBar", () => {
|
||||
const { screen, history } = await mount("?type=WEIGHT");
|
||||
const entries = window.history.length;
|
||||
(
|
||||
screen.getByRole("button", { name: "Defer replace type" }).element() as HTMLButtonElement
|
||||
screen
|
||||
.getByRole("button", { name: "Defer replace type" })
|
||||
.element() as HTMLButtonElement
|
||||
).click();
|
||||
|
||||
// Immediately after trigger, the write is deferred until after paint:
|
||||
|
||||
Reference in new issue
Block a user