Skip to content

Commit

Permalink
Merge branch 'feature/remove-rabbithole' into hotfix/3.12.15
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Feb 11, 2024
2 parents 14390ec + fe06b41 commit 483728c
Showing 1 changed file with 46 additions and 42 deletions.
88 changes: 46 additions & 42 deletions src/sidebar/annotations-sidebar/components/AnnotationsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1899,36 +1899,38 @@ export class AnnotationsSidebar extends React.Component<

return (
<AISidebarContainer>
{this.props.sidebarContext === 'in-page' && (
<SuggestionsListSwitcher>
<SuggestionsSwitcherButton
onClick={this.props.setActiveAITab('ThisPage')}
active={this.props.activeAITab === 'ThisPage'}
>
This Page
</SuggestionsSwitcherButton>
<SuggestionsSwitcherButton
onClick={this.props.setActiveAITab(
'ExistingKnowledge',
)}
active={
this.props.activeAITab === 'ExistingKnowledge'
}
>
Saved by me
</SuggestionsSwitcherButton>
<SuggestionsSwitcherButton
onClick={this.props.setActiveAITab(
'InFollowedFeeds',
)}
active={
this.props.activeAITab === 'InFollowedFeeds'
}
>
In Followed
</SuggestionsSwitcherButton>
</SuggestionsListSwitcher>
)}
{this.props.sidebarContext === 'in-page' &&
this.props.rabbitHoleBetaFeatureAccess === 'onboarded' && (
<SuggestionsListSwitcher>
<SuggestionsSwitcherButton
onClick={this.props.setActiveAITab('ThisPage')}
active={this.props.activeAITab === 'ThisPage'}
>
This Page
</SuggestionsSwitcherButton>
<SuggestionsSwitcherButton
onClick={this.props.setActiveAITab(
'ExistingKnowledge',
)}
active={
this.props.activeAITab ===
'ExistingKnowledge'
}
>
Saved by me
</SuggestionsSwitcherButton>
<SuggestionsSwitcherButton
onClick={this.props.setActiveAITab(
'InFollowedFeeds',
)}
active={
this.props.activeAITab === 'InFollowedFeeds'
}
>
In Followed
</SuggestionsSwitcherButton>
</SuggestionsListSwitcher>
)}
{this.props.showFeedSourcesMenu ? (
this.renderSourcesMenu(
this.props.activeAITab === 'ExistingKnowledge'
Expand Down Expand Up @@ -3816,18 +3818,20 @@ export class AnnotationsSidebar extends React.Component<
padding={'3px 6px'}
height={'30px'}
/>
{this.props.sidebarContext === 'in-page' && (
<PrimaryAction
onClick={this.props.setActiveTab('rabbitHole')}
label={'RabbitHole'}
active={this.props.activeTab === 'rabbitHole'}
type={'tertiary'}
size={'medium'}
iconPosition={'right'}
padding={'3px 6px'}
height={'30px'}
/>
)}
{this.props.sidebarContext === 'in-page' &&
this.props.rabbitHoleBetaFeatureAccess ===
'onboarded' && (
<PrimaryAction
onClick={this.props.setActiveTab('rabbitHole')}
label={'RabbitHole'}
active={this.props.activeTab === 'rabbitHole'}
type={'tertiary'}
size={'medium'}
iconPosition={'right'}
padding={'3px 6px'}
height={'30px'}
/>
)}
{/* <PrimaryAction
onClick={this.props.setActiveTab('spaces')}
label={'Spaces'}
Expand Down

0 comments on commit 483728c

Please sign in to comment.