[WEB-1255] chore: necessary changes for advanced views (#4955)
* make necessary changes for advanced views * fix update view access methods
This commit is contained in:
parent
dbd7756163
commit
1f9f821543
8 changed files with 65 additions and 8 deletions
|
|
@ -9,9 +9,10 @@ import { Breadcrumbs, PhotoFilterIcon, Button } from "@plane/ui";
|
|||
// components
|
||||
import { BreadcrumbLink, Logo } from "@/components/common";
|
||||
import { ViewListHeader } from "@/components/views";
|
||||
import { ViewAppliedFiltersList } from "@/components/views/filters/applied-filters";
|
||||
import { ViewAppliedFiltersList } from "@/components/views/applied-filters";
|
||||
// constants
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { EViewAccess } from "@/constants/views";
|
||||
// helpers
|
||||
import { calculateTotalFilters } from "@/helpers/filter.helper";
|
||||
// hooks
|
||||
|
|
@ -29,7 +30,7 @@ export const ProjectViewsHeader = observer(() => {
|
|||
const { filters, updateFilters, clearAllFilters } = useProjectView();
|
||||
|
||||
const handleRemoveFilter = useCallback(
|
||||
(key: keyof TViewFilterProps, value: string | null) => {
|
||||
(key: keyof TViewFilterProps, value: string | EViewAccess | null) => {
|
||||
let newValues = filters.filters?.[key];
|
||||
|
||||
if (key === "favorites") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue