Fix opportunity views
This commit is contained in:
@ -24,8 +24,10 @@ export type BoardHeaderProps<SortField> = ComponentProps<'div'> & {
|
|||||||
export function BoardHeader<SortField>({
|
export function BoardHeader<SortField>({
|
||||||
onStageAdd,
|
onStageAdd,
|
||||||
onViewsChange,
|
onViewsChange,
|
||||||
|
onViewSubmit,
|
||||||
scopeContext,
|
scopeContext,
|
||||||
...props
|
availableSorts,
|
||||||
|
defaultViewName,
|
||||||
}: BoardHeaderProps<SortField>) {
|
}: BoardHeaderProps<SortField>) {
|
||||||
const OptionsDropdownButton = useCallback(
|
const OptionsDropdownButton = useCallback(
|
||||||
() => (
|
() => (
|
||||||
@ -42,36 +44,13 @@ export function BoardHeader<SortField>({
|
|||||||
return (
|
return (
|
||||||
<RecoilScope SpecificContext={DropdownRecoilScopeContext}>
|
<RecoilScope SpecificContext={DropdownRecoilScopeContext}>
|
||||||
<ViewBar
|
<ViewBar
|
||||||
{...props}
|
availableSorts={availableSorts}
|
||||||
|
defaultViewName={defaultViewName}
|
||||||
onViewsChange={onViewsChange}
|
onViewsChange={onViewsChange}
|
||||||
|
onViewSubmit={onViewSubmit}
|
||||||
optionsDropdownKey={BoardOptionsDropdownKey}
|
optionsDropdownKey={BoardOptionsDropdownKey}
|
||||||
OptionsDropdownButton={OptionsDropdownButton}
|
OptionsDropdownButton={OptionsDropdownButton}
|
||||||
scopeContext={scopeContext}
|
scopeContext={scopeContext}
|
||||||
displayBottomBorder={false}
|
|
||||||
leftComponent={
|
|
||||||
<>
|
|
||||||
<StyledIcon>{viewIcon}</StyledIcon>
|
|
||||||
{viewName}
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
rightComponent={
|
|
||||||
<>
|
|
||||||
<FilterDropdownButton
|
|
||||||
context={context}
|
|
||||||
hotkeyScope={FiltersHotkeyScope.FilterDropdownButton}
|
|
||||||
/>
|
|
||||||
<SortDropdownButton<SortField>
|
|
||||||
context={context}
|
|
||||||
availableSorts={availableSorts || []}
|
|
||||||
hotkeyScope={FiltersHotkeyScope.FilterDropdownButton}
|
|
||||||
/>
|
|
||||||
<BoardOptionsDropdown
|
|
||||||
customHotkeyScope={{ scope: BoardOptionsHotkeyScope.Dropdown }}
|
|
||||||
onStageAdd={onStageAdd}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
bottomComponent={<ViewBarDetails context={context} />}
|
|
||||||
/>
|
/>
|
||||||
</RecoilScope>
|
</RecoilScope>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import { GET_PIPELINE_PROGRESS } from '@/pipeline/graphql/queries/getPipelinePro
|
|||||||
import { PageHotkeyScope } from '@/types/PageHotkeyScope';
|
import { PageHotkeyScope } from '@/types/PageHotkeyScope';
|
||||||
import {
|
import {
|
||||||
BoardHeader,
|
BoardHeader,
|
||||||
type BoardHeaderProps,
|
BoardHeaderProps,
|
||||||
} from '@/ui/board/components/BoardHeader';
|
} from '@/ui/board/components/BoardHeader';
|
||||||
import { StyledBoard } from '@/ui/board/components/StyledBoard';
|
import { StyledBoard } from '@/ui/board/components/StyledBoard';
|
||||||
import { BoardColumnIdContext } from '@/ui/board/contexts/BoardColumnIdContext';
|
import { BoardColumnIdContext } from '@/ui/board/contexts/BoardColumnIdContext';
|
||||||
|
|||||||
Reference in New Issue
Block a user