Skip to content

Commit

Permalink
v4.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jan 15, 2024
1 parent a0f88b8 commit 1d8210c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/netdata-ui",
"version": "4.3.1",
"version": "4.3.2",
"description": "netdata UI kit",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/button/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getBorderColor = props =>
props.neutral ? getColor("generic")(props) : getColor("primary")(props)
const getTextColor = props =>
props.neutral
? getColor(props.flavour === HOLLOW ? "textFocus" : "mainBackground")(props)
? getColor(props.flavour === HOLLOW ? "text" : "mainBackground")(props)
: getColor(props.flavour === HOLLOW ? "secondaryColor" : "mainBackground")(props)
const getHoverColor = props =>
props.neutral ? getColor("generic")(props) : getColor("accent")(props)
Expand Down
10 changes: 10 additions & 0 deletions src/hooks/useDebouncedValue/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { useState } from "react"
import useDebounce from "../useDebounce"

export default (value, delay, deps = []) => {
const [state, setState] = useState()

useDebounce(() => setState(value), delay, [value, ...deps])

return state
}

0 comments on commit 1d8210c

Please sign in to comment.