32 | {type === "error" ? (
33 |
39 | {message}
40 |
41 | ) : (
42 |
48 | {message}
49 |
50 | )}
51 |
52 | ) : null;
53 | };
54 |
55 | export default ToastAlert;
56 |
--------------------------------------------------------------------------------
/src/apps/authentication/__test__/components/UserOrganisationDetails.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render } from "../../../../test-utils.test";
3 | import { UserOrganisationDetails } from "../../components";
4 | import { testAPIOrgList } from "../test_data";
5 |
6 | type userOrganisationDetailsProps = React.ComponentProps<
7 | typeof UserOrganisationDetails
8 | >;
9 |
10 | const baseProps: userOrganisationDetailsProps = {
11 | orgs: testAPIOrgList
12 | };
13 |
14 | function renderUI(props: Partial