We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8deaf47 commit 868e6a3Copy full SHA for 868e6a3
src/pages/Livestream.js
@@ -60,12 +60,16 @@ const Livestream = () => {
60
readOnly
61
className="border border-gray-300 rounded-lg p-2 text-center font-mono text-lg w-[120px] bg-gray-100 mr-4"
62
/>
63
- <button
64
- onClick={() => setEventCode(generateEventCode())}
65
- className="px-4 py-2 bg-blue-500 text-white font-semibold rounded-lg hover:bg-blue-600"
66
- >
67
- Tạo mã mới
68
- </button>
+ <button
+ onClick={() => {
+ setEventCode(generateEventCode());
+ window.location.reload();
+ }}
+ className="px-4 py-2 bg-blue-500 text-white font-semibold rounded-lg hover:bg-blue-600"
69
+ >
70
+ Tạo mã mới
71
+ </button>
72
+
73
</div>
74
75
0 commit comments