diff --git a/package-lock.json b/package-lock.json index 20d451e9..8ad36860 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,7 @@ "dependencies": { "@metrostar/comet-data-viz": "1.1.5", "@metrostar/comet-extras": "1.4.0", - "@metrostar/comet-uswds": "2.4.1", - "@rollup/rollup-linux-x64-gnu": "4.21.0", + "@metrostar/comet-uswds": "3.0.0", "@tanstack/react-query": "5.51.24", "@tanstack/react-table": "8.20.1", "@uswds/uswds": "3.8.2", @@ -1334,9 +1333,9 @@ } }, "node_modules/@metrostar/comet-uswds": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@metrostar/comet-uswds/-/comet-uswds-2.4.1.tgz", - "integrity": "sha512-DaQCn/j9YllZThyYGCa7N7wjGKuunICEfOVWp43cnR4WDgeR9lfGxuPeUF6gqkVIq4iyjRZGXOGEihv7S2E2mw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@metrostar/comet-uswds/-/comet-uswds-3.0.0.tgz", + "integrity": "sha512-bApVDJPBv9kkB0IEl3Hns7g7B5M3SXigts2kr1BcZZ98FpaAgatyyOh/Io4P593S5faH5gzEa0Z2DYsGLjrNEg==", "dependencies": { "@uswds/uswds": "3.8.2", "classnames": "^2.5.1", diff --git a/package.json b/package.json index a15d23f1..86973174 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@metrostar/comet-data-viz": "1.1.5", "@metrostar/comet-extras": "1.4.0", - "@metrostar/comet-uswds": "2.4.1", + "@metrostar/comet-uswds": "3.0.0", "@tanstack/react-query": "5.51.24", "@tanstack/react-table": "8.20.1", "@uswds/uswds": "3.8.2", diff --git a/src/hooks/use-auth.ts b/src/hooks/use-auth.ts index fe03ac1b..4f2df260 100644 --- a/src/hooks/use-auth.ts +++ b/src/hooks/use-auth.ts @@ -51,6 +51,9 @@ const useAuth = () => { if (auth.error) { setError(auth.error.message); setIsSignedIn(false); + + // eslint-disable-next-line no-console + console.error('Error:', auth.error); } }, [auth.error, setIsSignedIn]); @@ -58,6 +61,7 @@ const useAuth = () => { if (isSso) { auth.signinRedirect({ redirect_uri: getSignInRedirectUrl() }); } else { + auth.error = undefined; setIsSignedIn(true); setCurrentUserData(userData); } diff --git a/src/pages/sign-in/sign-in.tsx b/src/pages/sign-in/sign-in.tsx index a219839e..d578b45f 100644 --- a/src/pages/sign-in/sign-in.tsx +++ b/src/pages/sign-in/sign-in.tsx @@ -2,10 +2,7 @@ import { Alert, Button, ButtonGroup, - ErrorMessages, Form, - FormGroup, - Label, TextInput, } from '@metrostar/comet-uswds'; import { FormInput } from '@src/types/form'; @@ -54,40 +51,48 @@ export const SignIn = (): React.ReactElement => {