Skip to content

Commit

Permalink
Layout -> StandardLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed Oct 15, 2021
1 parent c2c39a9 commit 11d5905
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sample-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './sass/App.scss';
import VerticalSearchPage from './pages/VerticalSearchPage';
import UniversalSearchPage from './pages/UniversalSearchPage';
import PageRouter from './PageRouter';
import Layout from './Layout';
import StandardLayout from './pages/StandardLayout';
import { AnswersActionsProvider } from '@yext/answers-headless-react';
import { universalResultsConfig } from './universalResultsConfig';

Expand Down Expand Up @@ -30,7 +30,7 @@ export default function App() {
>
<div className='App'>
<PageRouter
Layout={Layout}
Layout={StandardLayout}
routes={routes}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Navigation from './components/Navigation';
import SearchBar from './components/SearchBar';
import Navigation from '../components/Navigation';
import SearchBar from '../components/SearchBar';
import { useAnswersState } from '@yext/answers-headless-react';
import { universalResultsConfig } from './universalResultsConfig';
import { LayoutComponent } from './PageRouter';
import { universalResultsConfig } from '../universalResultsConfig';
import { LayoutComponent } from '../PageRouter';

const navLinks = [
{
Expand All @@ -18,7 +18,7 @@ const navLinks = [
/**
* A LayoutComponent that provides a SearchBar and Navigation tabs to a given page.
*/
const Layout: LayoutComponent = ({ page }) => {
const StandardLayout: LayoutComponent = ({ page }) => {
const isVertical = useAnswersState(state => !!state.vertical.key);
return (
<>
Expand All @@ -31,4 +31,4 @@ const Layout: LayoutComponent = ({ page }) => {
</>
)
}
export default Layout;
export default StandardLayout;

0 comments on commit 11d5905

Please sign in to comment.