From 746f5676e55235c969e09a0937d2593d9d5f0afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahar=20A=2E=20D=C3=BCrrani?= Date: Wed, 1 Nov 2023 09:44:19 +0500 Subject: [PATCH] docs: fix types for mui example --- packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md b/packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md index 2dce817..4d4755c 100644 --- a/packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md +++ b/packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md @@ -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) => ( @@ -225,7 +225,7 @@ export const MuiPhone: React.FC = ({ right: 0, }, }} - value={country} + value={country.iso2} onChange={(e) => setCountry(e.target.value as CountryIso2)} renderValue={(value) => (