fix: oops forgot to disable buttons with empty input
This commit is contained in:
parent
5df9be1b8e
commit
a340b3d263
@ -120,7 +120,11 @@ export default function Domains({ baseDomain, searchDomains }: Properties) {
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
className='text-sm text-blue-700'
|
className={clsx(
|
||||||
|
'text-sm text-blue-700',
|
||||||
|
newDomain.length === 0 ? 'opacity-50 cursor-not-allowed' : ''
|
||||||
|
)}
|
||||||
|
disabled={newDomain.length === 0}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
fetcher.submit({
|
fetcher.submit({
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
|
|||||||
@ -144,7 +144,11 @@ export default function Page() {
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
className='text-sm text-blue-700'
|
className={clsx(
|
||||||
|
'text-sm text-blue-700',
|
||||||
|
ns.length === 0 ? 'opacity-50 cursor-not-allowed' : ''
|
||||||
|
)}
|
||||||
|
disabled={ns.length === 0}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
fetcher.submit({
|
fetcher.submit({
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user