Skip to content

Commit d9340ed

Browse files
seanstorymiguelgrinberg
authored andcommitted
Render the settings first, so that you can choose the right persona
1 parent 47092c7 commit d9340ed

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

example-apps/internal-knowledge-search/app-ui/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function App() {
2121
<SidebarMenu/>
2222
<main className="flex-1 p-6">
2323
<Routes>
24-
<Route path="/" element={<SearchPage/>}/>
25-
<Route path="/settings" element={<SettingsPage/>}/>
24+
<Route path="/" element={<SettingsPage/>}/>
25+
<Route path="/search" element={<SearchPage/>}/>
2626
</Routes>
2727
</main>
2828
</div>

example-apps/internal-knowledge-search/app-ui/src/components/SidebarMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {Link} from "react-router-dom";
44

55

66
const navItems = [
7-
{ label: 'Search', icon: <FaMagnifyingGlass/>, route: '/' },
8-
{ label: 'Settings', icon: <FaGear/>, route: '/settings' }
7+
{ label: 'Search', icon: <FaMagnifyingGlass/>, route: '/search' },
8+
{ label: 'Settings', icon: <FaGear/>, route: '/' }
99
];
1010

1111
const SidebarMenu: React.FC = () => {

example-apps/internal-knowledge-search/app-ui/src/pages/SearchPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export default function SearchPage() {
5252
setLoading(true);
5353

5454
const apiKey = searchPersonaAPIKey
55-
showToast("API key is: "+apiKey)
5655

5756
const client = SearchApplicationClient(appName, searchEndpoint, apiKey, {
5857
"facets": {

0 commit comments

Comments
 (0)