22 | {error &&
{error.message} }
23 | {isLoading &&
Laster roller...}
24 | {!isLoading && hasSearched && roles.length === 0 && !error && (
25 |
Ingen roller funnet.
26 | )}
27 | {roles.length > 0 && !error &&
}
28 |
29 | );
30 | };
31 |
32 | export default ManualRoleSearchResult;
33 |
34 |
--------------------------------------------------------------------------------
/frontend/altinn-support-dashboard.client/src/components/ManualRoleSearch/ManualRoleEmptySearchButton.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import {
3 | setLocalStorageValue
4 | } from "./utils/storageUtils";
5 | import { Button } from '@digdir/designsystemet-react';
6 | import styles from "./styles/EmptySearchButton.module.css";
7 |
8 |
9 | type EmptySearchProps = {
10 | sethasSearched: (value: boolean) => void;
11 | setRollehaver: (value: string) => void;
12 | setRollegiver: (value: string) => void;
13 | };
14 |
15 | const EmptySearch: React.FC