Skip to content

Commit

Permalink
fix playground facetedSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Apr 18, 2024
1 parent b892265 commit 5798bf9
Show file tree
Hide file tree
Showing 2 changed files with 527 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/playground/src/app/components/FacetedSearch.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
// eslint-disable-next-line @talend/import-depth
// import * as badges from '@talend/react-faceted-search/stories/badgesDefinitions';
import Layout from '@talend/react-components/lib/Layout';
import HeaderBar from '@talend/react-containers/lib/HeaderBar';
import SidePanel from '@talend/react-containers/lib/SidePanel';
import FacetedSearch from '@talend/react-faceted-search';

import * as badges from './badgesDefinitions';

function action(msg) {
// eslint-disable-next-line no-console
return (...args) => console.log(msg, ...args);
}

// const badgesDefinitions = Object.values(badges);
const badgesDefinitions = Object.values(badges);

const callbacks = {
getTags: () =>
Expand Down Expand Up @@ -39,7 +40,7 @@ const callbacks = {
export function FacetedSearchPlayground() {
return (
<Layout mode="TwoColumns" one={<SidePanel />} header={<HeaderBar />}>
{/* <FacetedSearch.Faceted>
<FacetedSearch.Faceted>
{currentFacetedMode =>
(currentFacetedMode === FacetedSearch.constants.FACETED_MODE.ADVANCED && (
<FacetedSearch.AdvancedSearch onSubmit={action('onSubmit')} />
Expand All @@ -52,7 +53,7 @@ export function FacetedSearchPlayground() {
/>
))
}
</FacetedSearch.Faceted> */}
</FacetedSearch.Faceted>
</Layout>
);
}
Loading

0 comments on commit 5798bf9

Please sign in to comment.