Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
henit committed Sep 11, 2023
1 parent 78b02c6 commit e833855
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Value,
Visibility,
FieldGroup,
useField,
useDataValue,
} from '@dnb/eufemia/src/extensions/forms'

export const FirstExampleDemo = () => {
Expand All @@ -18,12 +18,12 @@ export const FirstExampleDemo = () => {
Layout,
Field,
FieldGroup,
useField,
useDataValue,
}}
>
{() => {
const MyComponent = (props) => {
const { value } = useField(props)
const { value } = useDataValue(props)

return (
<FieldGroup warning={value.warning}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import {
Value,
ValueBlock,
Visibility,
useField,
useValue,
useDataValue,
} from '@dnb/eufemia/extensions/forms'
```

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit e833855

Please sign in to comment.