Skip to content

Commit

Permalink
banking applications
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-justin committed Dec 14, 2023
1 parent 1057c4d commit 046f083
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/App/Header/UserMenu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ export default function Menu({ classes = "", user, signOut }: Props) {
<span>Applications Dashboard</span>
</Link>
)}
{user.groups.includes(groups["ap-admin"]) && (
<Link
to={appRoutes.banking_applications}
className="hover:text-orange text-sm flex items-center gap-1 mt-1"
>
<Icon type="SecurityScan" size={22} />
<span>Banking applications</span>
</Link>
)}
</div>
</div>
<button
Expand Down
6 changes: 6 additions & 0 deletions src/services/aws/banking-applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
NewBankingApplication,
PayoutMethod,
} from "types/aws";
import { TEMP_JWT } from "constants/auth";
import { aws } from "./aws";

const bankingApplications = aws.injectEndpoints({
Expand All @@ -16,6 +17,7 @@ const bankingApplications = aws.injectEndpoints({
method: "POST",
url: "/staging/banking-applications",
body: payload,
headers: { Authorization: TEMP_JWT },
};
},
}),
Expand All @@ -29,6 +31,7 @@ const bankingApplications = aws.injectEndpoints({
method: "PUT",
url: `/staging/banking-applications/${uuid}`,
body: payload,
headers: { Authorization: TEMP_JWT },
};
},
}),
Expand All @@ -38,6 +41,7 @@ const bankingApplications = aws.injectEndpoints({
return {
method: "DELETE",
url: `/staging/banking-applications/${uuid}`,
headers: { Authorization: TEMP_JWT },
};
},
}),
Expand All @@ -50,6 +54,7 @@ const bankingApplications = aws.injectEndpoints({
return {
url: "/staging/banking-applications",
params: { ...params, requestor: "bg-admin" },
headers: { Authorization: TEMP_JWT },
};
},
}),
Expand All @@ -59,6 +64,7 @@ const bankingApplications = aws.injectEndpoints({
return {
url: "/staging/banking-applications",
params: { endowmentID, requestor: "endowment" },
headers: { Authorization: TEMP_JWT },
};
},
}),
Expand Down

0 comments on commit 046f083

Please sign in to comment.