Skip to content

Commit

Permalink
8395 [Manage Public Key] Add new route, and basic page (#8665)
Browse files Browse the repository at this point in the history
* 8395 [Manage Public Key] Add new route, and basic page

* 8395 [Manage Public Key] Add new route, and basic page

* 8098 generate condition filtered FHIR bundle (#8600)

* Added ability to remove filtered conditions from a bundle

---------

Co-authored-by: Jessica Willis <jessicawillis@navapbc.com>

* Update to Node 18.15 (#8631)

* Update to Node 18
Fixes #7078

* 8395 [Manage Public Key]
- Changed <div> to <GridContainer>.
- Removed extra <div>

* 8395 [Manage Public Key]
- Fix lint error

---------

Co-authored-by: victor-chaparro <117938212+victor-chaparro@users.noreply.github.com>
Co-authored-by: Jessica Willis <jessicawillis@navapbc.com>
Co-authored-by: Joseph Andersen <josephandersen@navapbc.com>
Co-authored-by: Stephen Nesman <94193373+snesm@users.noreply.github.com>
  • Loading branch information
5 people committed Mar 10, 2023
1 parent 249cdb6 commit 25e4a79
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend-react/src/AppRouter.tsx
Expand Up @@ -31,6 +31,7 @@ import { EditReceiverSettingsWithAuth } from "./components/Admin/EditReceiverSet
import { AdminRevHistoryWithAuth } from "./pages/admin/AdminRevHistory";
import { ErrorNoPage } from "./pages/error/legacy-content/ErrorNoPage";
import { MessageDetailsWithAuth } from "./components/MessageTracker/MessageDetails";
import { ManagePublicKeyWithAuth } from "./components/ManagePublicKey/ManagePublicKey";

export enum FeatureName {
DAILY_DATA = "Daily Data",
Expand Down Expand Up @@ -106,6 +107,10 @@ export const appRoutes = [
path: "/admin/revisionhistory/org/:org/settingtype/:settingType",
element: <AdminRevHistoryWithAuth />,
},
{
path: "/resources/manage-public-key",
element: <ManagePublicKeyWithAuth />,
},
{ path: "/file-handler/validate", element: <ValidateWithAuth /> },
/* Handles any undefined route */
{ path: "*", element: <ErrorNoPage /> },
Expand Down
25 changes: 25 additions & 0 deletions frontend-react/src/components/ManagePublicKey/ManagePublicKey.tsx
@@ -0,0 +1,25 @@
import React from "react";
import { GridContainer } from "@trussworks/react-uswds";

import { AuthElement } from "../AuthElement";
import { withCatchAndSuspense } from "../RSErrorBoundary";
import { MemberType } from "../../hooks/UseOktaMemberships";

export function ManagePublicKey() {
return (
<GridContainer className="padding-bottom-5 tablet:padding-top-6">
<h1 className="margin-top-0 margin-bottom-5">Manage Public Key</h1>
<p className="font-sans-md">
Send your public key to begin the REST API authentication
process.
</p>
</GridContainer>
);
}

export const ManagePublicKeyWithAuth = () => (
<AuthElement
element={withCatchAndSuspense(<ManagePublicKey />)}
requiredUserType={MemberType.SENDER}
/>
);

0 comments on commit 25e4a79

Please sign in to comment.