Unverified Commit f86d5d55 authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

chore: Fuselage: select states (error/disabled) (#139)

parent 5269aad6
......@@ -15,7 +15,6 @@ export const kitContext = React.createContext(defaultContext);
export const useBlockContext = ({ blockId, actionId, appId, initialValue }, context) => {
const { action, appId: appIdFromContext, viewId, state, errors, values = {} } = useContext(kitContext);
const { value = initialValue } = values[actionId] || {};
// const [value, setValue] = useState(initialValue);
const [loading, setLoading] = useState(false);
......
......@@ -20,7 +20,7 @@ export const Chip = ({
...props
}) => (
<Flex.Container>
<Container disabled={!(onClick || onMouseDown)} onClick={onClick || onMouseDown} {...props}>
<Container type='button' disabled={!(onClick || onMouseDown)} onClick={onClick || onMouseDown} {...props}>
{Thumb && thumbUrl && <Margins all='x4'>
<Thumb url={thumbUrl} />
</Margins>}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment