Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/pages/en/docs/more/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';

function App() {
const [result, setResult] = useState<boolean>();
const [result, setResult] = useState<boolean | null>(null);

return (
<div>
Expand All @@ -94,7 +94,7 @@ function App() {
>
Open Confirm Dialog
</Button>
<p>result: {result ? 'Y' : 'N'}</p>
<p>{result === null ? 'Not selected' : result ? 'result: Y' : 'result: N'}</p>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/ko/docs/more/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';

function App() {
const [result, setResult] = useState<boolean>();
const [result, setResult] = useState<boolean | null>(null);

return (
<div>
Expand All @@ -94,7 +94,7 @@ function App() {
>
Confirm Dialog 열기
</Button>
<p>result: {result ? 'Y' : 'N'}</p>
<p>{result === null ? 'Not selected' : result ? 'result: Y' : 'result: N'}</p>
</div>
);
}
Expand Down