Skip to content

Commit 52bcb08

Browse files
committed
Fix code renderer and deployment script
1 parent 68c5561 commit 52bcb08

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

examples/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ git restore .
44
git pull
55

66
cd ~/mui-phone-input/examples/material
7+
rm -r node_modules package-lock.json
78
npm install && npm run build
89

910
sudo rm -r /var/www/playground/mui-phone-input/*

examples/material/src/Demo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ const Demo = () => {
5252
if (disabled) code += " disabled\n";
5353
if (search && dropdown) code += " enableSearch\n";
5454
if (!dropdown) code += " disableDropdown\n";
55+
if (!parentheses) code += " disableParentheses\n";
5556
if (code === "<PhoneInput\n") code = "<PhoneInput />";
5657
else code += "/>";
5758
return code;
58-
}, [disabled, search, dropdown])
59+
}, [disabled, search, dropdown, parentheses])
5960

6061
return (
6162
<ThemeProvider theme={theme}>

0 commit comments

Comments
 (0)