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 f3ca371 commit d02652fCopy full SHA for d02652f
client/src/components/LeetCodeWrapped.jsx
@@ -123,7 +123,7 @@ const LeetCodeWrapped = () => {
123
124
<div className=' flex items-center justify-center'>
125
<input onChange={handleInputChange} type="text" placeholder="Generate Your LeetCode-Wrap" className="my-2 w-[250px] input input-bordered input-warning " />
126
- <button disabled={loading} onClick={handleSubmit} className="btn btn-outline btn-accent ml-3">Generate</button>
+ <button disabled={loading} onClick={handleSubmit} className={`${userName.trim() === '' ? 'pointer-events-none opacity-50' : ''}btn btn-outline btn-accent ml-3`}>Generate</button>
127
</div>
128
129
{/* Community Stat */}
0 commit comments