From 8da08784fd281022553a8521e1e65009375395e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 13:30:14 -0500 Subject: [PATCH] Bump @trussworks/react-uswds from 2.9.0 to 3.2.0 in /frontend-react (#7978) * Bump @trussworks/react-uswds from 2.9.0 to 3.2.0 in /frontend-react Bumps [@trussworks/react-uswds](https://github.com/trussworks/react-uswds) from 2.9.0 to 3.2.0. - [Release notes](https://github.com/trussworks/react-uswds/releases) - [Changelog](https://github.com/trussworks/react-uswds/blob/main/CHANGELOG.md) - [Commits](https://github.com/trussworks/react-uswds/compare/2.9.0...3.2.0) --- updated-dependencies: - dependency-name: "@trussworks/react-uswds" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix: update to fix breaking changes Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephen Kao --- frontend-react/package.json | 2 +- .../components/Admin/AdminLastMileFailuresTable.tsx | 3 --- .../src/components/Admin/OrgReceiverTable.tsx | 3 --- frontend-react/src/components/Admin/OrgsTable.tsx | 3 --- frontend-react/src/components/Crumbs.tsx | 8 ++------ .../components/FileHandlers/FileHandlerMessaging.tsx | 4 ++-- frontend-react/src/components/IconButton.tsx | 2 +- frontend-react/src/components/SenderModeBanner.tsx | 4 ++-- frontend-react/src/components/Table/Pagination.tsx | 10 +++------- frontend-react/src/components/Table/TableHeaders.tsx | 6 +++--- .../src/components/tooltips/ObjectTooltip.tsx | 6 +++--- frontend-react/src/pages/TermsOfService.tsx | 1 + frontend-react/src/pages/error/Generic.tsx | 4 +++- frontend-react/src/pages/misc/FeatureFlags.tsx | 10 +++++++--- .../src/pages/tos-sign/TermsOfServiceForm.tsx | 1 + frontend-react/yarn.lock | 8 ++++---- 16 files changed, 33 insertions(+), 42 deletions(-) diff --git a/frontend-react/package.json b/frontend-react/package.json index f37b4713d21..b2b707427b2 100644 --- a/frontend-react/package.json +++ b/frontend-react/package.json @@ -14,7 +14,7 @@ "@tanstack/react-query": "^4.20.9", "@tanstack/react-query-devtools": "^4.20.9", "@testing-library/user-event": "^13.5.0", - "@trussworks/react-uswds": "<3.0.0", + "@trussworks/react-uswds": "<4.0.0", "@types/downloadjs": "^1.4.2", "@types/lodash.chunk": "^4.2.7", "@types/lodash.omit": "^4.5.7", diff --git a/frontend-react/src/components/Admin/AdminLastMileFailuresTable.tsx b/frontend-react/src/components/Admin/AdminLastMileFailuresTable.tsx index 4f09b88c8c8..837faef804b 100644 --- a/frontend-react/src/components/Admin/AdminLastMileFailuresTable.tsx +++ b/frontend-react/src/components/Admin/AdminLastMileFailuresTable.tsx @@ -127,7 +127,6 @@ const RenderResendModal = (props: { ); diff --git a/frontend-react/src/components/Table/TableHeaders.tsx b/frontend-react/src/components/Table/TableHeaders.tsx index 324f07785df..399eaa90e6f 100644 --- a/frontend-react/src/components/Table/TableHeaders.tsx +++ b/frontend-react/src/components/Table/TableHeaders.tsx @@ -1,6 +1,6 @@ /* Renders the header row of the table from columns.values() */ import React from "react"; -import { IconArrowDownward, IconArrowUpward } from "@trussworks/react-uswds"; +import { Icon } from "@trussworks/react-uswds"; import { FilterManager } from "../../hooks/filters/UseFilterManager"; import { @@ -35,9 +35,9 @@ export const TableHeaders = ({ order === sortOrder || (locally && localOrder === sortOrder); if (filterManager && isOrder("ASC")) { - return ; + return ; } else if (filterManager && isOrder("DESC")) { - return ; + return ; } }; diff --git a/frontend-react/src/components/tooltips/ObjectTooltip.tsx b/frontend-react/src/components/tooltips/ObjectTooltip.tsx index 8563fbfa15e..8146d79f12e 100644 --- a/frontend-react/src/components/tooltips/ObjectTooltip.tsx +++ b/frontend-react/src/components/tooltips/ObjectTooltip.tsx @@ -1,4 +1,4 @@ -import { IconHelp, Tooltip } from "@trussworks/react-uswds"; +import { Icon, Tooltip } from "@trussworks/react-uswds"; import { SampleFilterObject, @@ -32,7 +32,7 @@ const ObjectTooltip = ({ obj }: ObjectTooltipProps) => { label={`${obj.stringify()}\n\n\n${obj.description()}`} onClick={() => copyToClipboard(obj.stringify())} > - + ); }; @@ -49,7 +49,7 @@ const EnumTooltip = ({ vals }: EnumTooltipProps) => { label={label} onClick={() => copyToClipboard(clipboard)} > - + ); }; diff --git a/frontend-react/src/pages/TermsOfService.tsx b/frontend-react/src/pages/TermsOfService.tsx index 55a5abca6d7..bd98c52645b 100644 --- a/frontend-react/src/pages/TermsOfService.tsx +++ b/frontend-react/src/pages/TermsOfService.tsx @@ -10,6 +10,7 @@ export const TermsOfService = () => { id="anchor-top" > { return ( - {message ? message : GENERIC_ERROR_STRING} + + {message ? message : GENERIC_ERROR_STRING} + ); }; diff --git a/frontend-react/src/pages/misc/FeatureFlags.tsx b/frontend-react/src/pages/misc/FeatureFlags.tsx index 738c24d59f8..e4b4866a241 100644 --- a/frontend-react/src/pages/misc/FeatureFlags.tsx +++ b/frontend-react/src/pages/misc/FeatureFlags.tsx @@ -88,7 +88,6 @@ export function FeatureFlagUIComponent() { key="add-feature-flag" type="button" outline - size="small" className="padding-bottom-1 padding-top-1" onClick={() => addFlagClick()} > @@ -103,13 +102,18 @@ export function FeatureFlagUIComponent() { className="margin-top-3" key={`feature-flag-${i}`} > - + {flagname} {DEFAULT_FEATURE_FLAGS.indexOf(flagname) === -1 && (