@campxdev/shared 1.4.24 → 1.4.25

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": "@campxdev/shared",
3
- "version": "1.4.24",
3
+ "version": "1.4.25",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -8,6 +8,7 @@ const StyledButtonWrapper = styled(Box)<{ size: 'regular' | 'large' }>(
8
8
  flexShrink: 0,
9
9
  border: theme.borders.grayLight,
10
10
  display: 'flex',
11
+ position: 'relative',
11
12
  alignItems: 'center',
12
13
  justifyContent: 'center',
13
14
  borderRadius: '10px',
@@ -19,12 +20,24 @@ const StyledButtonWrapper = styled(Box)<{ size: 'regular' | 'large' }>(
19
20
  }),
20
21
  )
21
22
 
23
+ const StyledNotify = styled(Box)({
24
+ height: '5px',
25
+ width: '5px',
26
+ backgroundColor: 'red',
27
+ position: 'absolute',
28
+ borderRadius: '50%',
29
+ top: 3,
30
+ right: 3,
31
+ })
32
+
22
33
  export default function FilterButton({
23
34
  onClick,
24
35
  size = 'large',
36
+ filtersApplied,
25
37
  ...props
26
38
  }: {
27
39
  onClick: (e: any) => void
40
+ filtersApplied?: boolean
28
41
  size?: 'regular' | 'large'
29
42
  }) {
30
43
  const handleClick = (e) => {
@@ -34,6 +47,7 @@ export default function FilterButton({
34
47
  }
35
48
  return (
36
49
  <StyledButtonWrapper size={size} {...props} onClick={handleClick}>
50
+ {filtersApplied && <StyledNotify />}
37
51
  <Tune />
38
52
  </StyledButtonWrapper>
39
53
  )