Skip to content

Commit

Permalink
Make projects list searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
kdid committed Aug 20, 2024
1 parent 5ab2c1c commit 4cf5fb0
Show file tree
Hide file tree
Showing 14 changed files with 514 additions and 159 deletions.
6 changes: 2 additions & 4 deletions app/assets/js/components/Dashboards/LocalAuthorities/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { IconEdit, IconImages, IconTrashCan } from "@js/components/Icon";
import { Link, useHistory } from "react-router-dom";
import { ModalDelete, SearchBarRow } from "@js/components/UI/UI";
import {
useApolloClient,
useLazyQuery,
useMutation,
useQuery,
Expand All @@ -23,7 +22,6 @@ import { toastWrapper } from "@js/services/helpers";
const colHeaders = ["Label", "Hint"];

export default function DashboardsLocalAuthoritiesList() {
const client = useApolloClient();
const history = useHistory();
const [currentAuthority, setCurrentAuthority] = React.useState();
const [filteredAuthorities, setFilteredAuthorities] = React.useState([]);
Expand Down Expand Up @@ -78,7 +76,7 @@ export default function DashboardsLocalAuthoritiesList() {
console.error("networkError", networkError);
toastWrapper(
"is-danger",
`Error in deleteNulAuthorityRecord GraphQL mutation`
`Error deleting authority record.`
);
},
});
Expand Down Expand Up @@ -114,7 +112,7 @@ export default function DashboardsLocalAuthoritiesList() {
console.error("networkError", networkError);
toastWrapper(
"is-danger",
`Error searching NUL local authorities through GraphQL LazyQuery`
`Error searching NUL local authorities.`
);
},
});
Expand Down
Loading

0 comments on commit 4cf5fb0

Please sign in to comment.