chore(eslint): add react/self-closing-comp (#2563)

This commit is contained in:
Pierre Spring
2026-02-23 22:58:46 +01:00
committed by GitHub
parent 947f70c3d7
commit cd8b386bf8
16 changed files with 33 additions and 31 deletions

View File

@@ -24,13 +24,13 @@ const SlideCheckbox = ({ onClick, checked = false }: SlideCheckboxProps) => {
className={`${
checked ? 'bg-indigo-500' : 'bg-gray-700'
} absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out`}
></span>
/>
<span
aria-hidden="true"
className={`${
checked ? 'translate-x-5' : 'translate-x-0'
} absolute left-0 inline-block h-5 w-5 rounded-full border border-gray-200 bg-white shadow transition-transform duration-200 ease-in-out group-focus:border-blue-300 group-focus:ring`}
></span>
/>
</span>
);
};