Skip to content

Commit

Permalink
enable Customize view button
Browse files Browse the repository at this point in the history
  • Loading branch information
dovalid committed Dec 13, 2023
1 parent e853c33 commit adb8f64
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions src/components/[guild]/crm/CrmMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {
ButtonGroup,
// Divider,
// IconButton,
// Menu,
// MenuButton,
// MenuItem,
// MenuList,
// Portal,
Divider,
IconButton,
Menu,
MenuButton,
MenuItem,
MenuList,
Portal,
useDisclosure,
} from "@chakra-ui/react"
import { Table } from "@tanstack/react-table"
import Button from "components/common/Button"
import useToast from "hooks/useToast"
import { /* CaretDown, */ Export, Sliders } from "phosphor-react"
import { CaretDown, Export, Sliders } from "phosphor-react"
import { useIsTabsStuck } from "../Tabs/Tabs"
import CustomizeViewModal from "./CustomizeViewModal"
import { Member } from "./useMembers"
Expand All @@ -21,11 +21,6 @@ type Props = {
table: Table<Member>
}

/**
* CustomizeViewModal related stuff is disabled yet, we'll release it together with
* the 'add roles as columns' feature
*/

const CrmMenu = ({ table }: Props) => {
const { isStuck } = useIsTabsStuck()
const toast = useToast()
Expand Down Expand Up @@ -73,12 +68,10 @@ const CrmMenu = ({ table }: Props) => {
<Button
flexShrink={0}
colorScheme={isStuck ? "gray" : "whiteAlpha"}
// borderRightRadius={0}
{
/* isExportDisabled ? customizeButtonProps : */ ...exportButtonProps
}
borderRightRadius={0}
{...(isExportDisabled ? customizeButtonProps : exportButtonProps)}
/>
{/* <Divider orientation="vertical" h="8" />
<Divider orientation="vertical" h="8" />
<Menu placement="bottom-end" strategy="fixed">
<MenuButton
as={IconButton}
Expand All @@ -94,7 +87,7 @@ const CrmMenu = ({ table }: Props) => {
/>
</MenuList>
</Portal>
</Menu> */}
</Menu>
</ButtonGroup>
<CustomizeViewModal {...{ isOpen, onClose, table }} />
</>
Expand Down

0 comments on commit adb8f64

Please sign in to comment.