Skip to content

Commit 702ac84

Browse files
committed
Resolves: MTV-3561 | Refactor StandardPage
Signed-off-by: Jeff Puzzo <[email protected]>
1 parent ff6c8a9 commit 702ac84

File tree

25 files changed

+1071
-718
lines changed

25 files changed

+1071
-718
lines changed

src/components/common/FilterGroup/matchers.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,17 @@ export const createMetaMatcher =
172172
resourceFields: ResourceField[],
173173
valueMatchers: ValueMatcher<string>[] = defaultValueMatchers,
174174
) =>
175-
(
176-
resourceData: Record<string, object | string | boolean | ((resourceData: unknown) => unknown)>,
177-
): boolean =>
175+
(resourceData: unknown): boolean =>
178176
valueMatchers
179177
.map(({ filterType, matchValue }) =>
180178
createMatcher({ filterType, matchValue, resourceFields, selectedFilters }),
181179
)
182-
.map((match) => match(resourceData))
180+
.map((match) =>
181+
match(
182+
resourceData as Record<
183+
string,
184+
object | string | boolean | ((resourceData: unknown) => unknown)
185+
>,
186+
),
187+
)
183188
.every(Boolean);

src/components/page/StandardPage.style.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.forklift-page__main-title {
2-
padding-bottom: 0;
3-
}
4-
51
.forklift-page__toolbar-item__selected-count {
62
color: var(--pf-t--global--text--color--subtle);
73
margin-inline-start: auto;

0 commit comments

Comments
 (0)