willba-component-library 0.0.66 → 0.0.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { useTranslation } from 'react-i18next'
3
- // import { FaSearch } from 'react-icons/fa'
3
+ import { FaSearch } from 'react-icons/fa'
4
4
 
5
5
  import './SubmitButton.css'
6
6
 
@@ -9,7 +9,9 @@ export default function SubmitButton({ onClick }: any) {
9
9
 
10
10
  return (
11
11
  <button className="will-filter-bar-submit-button" onClick={onClick}>
12
- <span>{/* <FaSearch /> */}</span>
12
+ <span>
13
+ <FaSearch />
14
+ </span>
13
15
  {t('submit.label')}
14
16
  </button>
15
17
  )
@@ -33,7 +33,11 @@ export default function useFilterBar() {
33
33
  }
34
34
 
35
35
  const url = `http://localhost:4000/en/events/?${queryParams.toString()}`
36
- window.location.href = url
36
+
37
+ if (typeof window !== 'undefined') {
38
+ window.location.href = url
39
+ }
40
+
37
41
  handleSelectedFilter(false)
38
42
  }
39
43
 
@@ -1,4 +1,4 @@
1
- /* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap'); */
1
+ @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
2
2
 
3
3
  .will-root * {
4
4
  font-family: 'Montserrat', sans-serif;