Skip to content

Commit

Permalink
AnswersActionsProvider -> AnswersHeadlessProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
cea2aj committed Oct 25, 2021
1 parent c47f198 commit 7d305f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sample-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import VerticalSearchPage from './pages/VerticalSearchPage';
import UniversalSearchPage from './pages/UniversalSearchPage';
import PageRouter from './PageRouter';
import StandardLayout from './pages/StandardLayout';
import { AnswersActionsProvider } from '@yext/answers-headless-react';
import { AnswersHeadlessProvider } from '@yext/answers-headless-react';
import { universalResultsConfig } from './universalResultsConfig';

const routes = [
Expand All @@ -22,7 +22,7 @@ const routes = [

export default function App() {
return (
<AnswersActionsProvider
<AnswersHeadlessProvider
apiKey='2d8c550071a64ea23e263118a2b0680b'
experienceKey='slanswers'
locale='en'
Expand All @@ -34,6 +34,6 @@ export default function App() {
routes={routes}
/>
</div>
</AnswersActionsProvider>
</AnswersHeadlessProvider>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props extends AnswersConfig {
verticalKey?: string
}

export function AnswersActionsProvider(props: Props): JSX.Element {
export function AnswersHeadlessProvider(props: Props): JSX.Element {
const { children, verticalKey, ...answersConfig } = props;
const answers: AnswersHeadless = provideAnswersHeadless(answersConfig);
verticalKey && answers.setVerticalKey(verticalKey);
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useAnswersActions, AnswersActions } from './useAnswersActions';
import { useAnswersState, StateSelector } from './useAnswersState';
import { useAnswersUtilities, AnswersUtilities } from './useAnswersUtilities';
import { subscribeToStateUpdates } from './subscribeToStateUpdates';
import { AnswersActionsProvider } from './AnswersActionsProvider';
import { AnswersHeadlessProvider } from './AnswersHeadlessProvider';
import { AnswersHeadlessContext } from './AnswersHeadlessContext';

export {
Expand All @@ -11,7 +11,7 @@ export {
useAnswersActions,
useAnswersState,
useAnswersUtilities,
AnswersActionsProvider,
AnswersHeadlessProvider,
AnswersActions,
AnswersUtilities,
StateSelector
Expand Down

0 comments on commit 7d305f9

Please sign in to comment.