Skip to content

Commit

Permalink
docs(atomic-react): update examples in readme (#4432)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lakhdar authored Sep 19, 2024
1 parent 1ee2897 commit 037b2ca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/atomic-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ import {
AtomicResultLink,
AtomicSearchInterface,
AtomicResultList,
} from '@coveo/atomic-react';
import {
buildSearchEngine,
getSampleSearchEngineConfiguration,
} from '@coveo/atomic-react';
} from '@coveo/headless';
import {useMemo} from 'react';

const MyStyledResultLink: React.FC<
Expand Down Expand Up @@ -242,12 +244,14 @@ The following is an example that makes the text of an `AtomicResultBadge` pink:

```tsx
import {
buildSearchEngine,
getSampleSearchEngineConfiguration,
AtomicSearchInterface,
AtomicResultList,
AtomicResultBadge,
} from '@coveo/atomic-react';
import {
buildSearchEngine,
getSampleSearchEngineConfiguration,
} from '@coveo/headless';
import {useMemo} from 'react';

const myStyles = `
Expand Down

0 comments on commit 037b2ca

Please sign in to comment.