Skip to content

Commit

Permalink
docs: fix types for mui example
Browse files Browse the repository at this point in the history
  • Loading branch information
baharalidurrani authored and goveo committed Nov 1, 2023
1 parent 937b9c8 commit 746f567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const MuiPhone = ({ value, onChange, ...restProps }) => {
right: 0,
},
}}
value={country}
value={country.iso2}
onChange={(e) => setCountry(e.target.value)}
renderValue={(value) => (
<FlagImage iso2={value} style={{ display: 'flex' }} />
Expand Down Expand Up @@ -225,7 +225,7 @@ export const MuiPhone: React.FC<MUIPhoneProps> = ({
right: 0,
},
}}
value={country}
value={country.iso2}
onChange={(e) => setCountry(e.target.value as CountryIso2)}
renderValue={(value) => (
<FlagImage iso2={value} style={{ display: 'flex' }} />
Expand Down

2 comments on commit 746f567

@vercel
Copy link

@vercel vercel bot commented on 746f567 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 746f567 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.