feat: Show recent searches (#2868)

* stash

* root hookup

* recent searches UI

* feat: Add search query deletion

* simplify no results state

* lint
This commit is contained in:
Tom Moor
2021-12-19 11:08:28 -08:00
committed by GitHub
parent 81f3347ecf
commit 6fc1b5cc22
15 changed files with 267 additions and 100 deletions

View File

@@ -0,0 +1,8 @@
import { SearchQuery, User } from "@server/models";
import policy from "./policy";
const { allow } = policy;
allow(User, ["read", "delete"], SearchQuery, (user, searchQuery) => {
return user && user.id === searchQuery.userId;
});