diff --git a/components/qrcode/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/qrcode/__tests__/__snapshots__/demo-extend.test.ts.snap index ec98effff5..25edfab623 100644 --- a/components/qrcode/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/qrcode/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -46,14 +46,34 @@ Array [ exports[`renders components/qrcode/demo/base.tsx extend context correctly 1`] = `
- +
+
+ +
+
+
+ +
`; diff --git a/components/qrcode/__tests__/__snapshots__/demo.test.ts.snap b/components/qrcode/__tests__/__snapshots__/demo.test.ts.snap index ab35368de5..4c8d7f0ea4 100644 --- a/components/qrcode/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/qrcode/__tests__/__snapshots__/demo.test.ts.snap @@ -11,14 +11,34 @@ exports[`renders components/qrcode/demo/Popover.tsx correctly 1`] = ` exports[`renders components/qrcode/demo/base.tsx correctly 1`] = `
- +
+
+ +
+
+
+ +
`; diff --git a/components/qrcode/demo/base.tsx b/components/qrcode/demo/base.tsx index 5092f0f86e..5d175758fd 100644 --- a/components/qrcode/demo/base.tsx +++ b/components/qrcode/demo/base.tsx @@ -1,6 +1,20 @@ +import { Input, QRCode, Space } from 'antd'; import React from 'react'; -import { QRCode } from 'antd'; -const App: React.FC = () => ; +const App: React.FC = () => { + const [text, setText] = React.useState('https://ant.design/'); + + return ( + + + setText(e.target.value)} + /> + + ); +}; export default App;