oddsgate-ds 1.0.206 → 1.0.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/organisms/Glossary/Glossary.component.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/organisms/Glossary/Glossary.component.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/organisms/Glossary/Glossary.component.tsx +4 -2
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ type GlossaryProps = {
|
|
|
13
13
|
categoryData: Record<string, string[]>
|
|
14
14
|
displayedCategories: string[]
|
|
15
15
|
placeholder?: string
|
|
16
|
+
noResults?: boolean
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export const Glossary: React.FC<GlossaryProps> = ({
|
|
@@ -22,7 +23,8 @@ export const Glossary: React.FC<GlossaryProps> = ({
|
|
|
22
23
|
setSelectedCategory,
|
|
23
24
|
categoryData,
|
|
24
25
|
displayedCategories,
|
|
25
|
-
placeholder
|
|
26
|
+
placeholder,
|
|
27
|
+
noResults
|
|
26
28
|
}) => {
|
|
27
29
|
const categoryNames = Object.keys(categoryData)
|
|
28
30
|
|
|
@@ -41,7 +43,7 @@ export const Glossary: React.FC<GlossaryProps> = ({
|
|
|
41
43
|
setSelectedCategory(cat === selectedCategory ? null : cat)
|
|
42
44
|
}
|
|
43
45
|
/>
|
|
44
|
-
{
|
|
46
|
+
{noResults ? (
|
|
45
47
|
<StyledNoResultsContainer>
|
|
46
48
|
<StyledNoResultsTitle>No results found!</StyledNoResultsTitle>
|
|
47
49
|
<StyledNoResultsSubtitle>Try another term</StyledNoResultsSubtitle>
|