caverav / auditforge

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
2 occurrences in this check
JSX props should not use arrow functions
63      </div>
64      <button
65        className="fixed bottom-4 left-4 lg:hidden bg-gray-900 text-white p-2 rounded-full shadow-lg hover:bg-gray-800 transition-colors"
66        onClick={toggleSidebar}67        type="button"
68      >
69        <Menu size={24} />
JSX props should not use arrow functions
29          {isOpen ? <h2 className="text-xl font-semibold">{title}</h2> : null}
30          <button
31            className="p-2 rounded-full hover:bg-gray-800 transition-colors"
32            onClick={toggleSidebar}33            type="button"
34          >
35            {isOpen ? <ChevronLeft size={24} /> : <ChevronRight size={24} />}