-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add browse library link to prompt popover (#5779)
This adds - Ghost styling for welcome area buttons - Link "Browser library" to prompt popover UI <img width="424" alt="Screenshot 2024-10-02 at 14 33 48" src="https://github.com/user-attachments/assets/07ed8fad-c735-409e-8b33-47829c9f6585"> ## Test plan - Check that links work properly <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
- Loading branch information
1 parent
85cd7ec
commit c24f9b3
Showing
5 changed files
with
90 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { createContext, useContext } from 'react' | ||
import { View } from '../tabs' | ||
|
||
interface TabViewContextData { | ||
view: View | ||
setView: (view: View) => void | ||
} | ||
|
||
export const TabViewContext = createContext<TabViewContextData>({ | ||
view: View.Chat, | ||
setView: () => {}, | ||
}) | ||
|
||
export function useTabView(): TabViewContextData { | ||
return useContext(TabViewContext) | ||
} |