refactor: remove true from boolean attribute (#2579)
When using a boolean attribute in JSX, you can set the attribute value to true or omit the value. This helps to keep consistency in code. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
parent
b7d5a42d45
commit
80e6d7e1ea
21 changed files with 35 additions and 35 deletions
|
|
@ -177,7 +177,7 @@ export const ProjectCard: React.FC<ProjectCardProps> = observer((props) => {
|
|||
>
|
||||
{projectMembersIds.length > 0 ? (
|
||||
<div className="flex items-center cursor-pointer gap-2 text-custom-text-200">
|
||||
<AssigneesList userIds={projectMembersIds} length={3} showLength={true} />
|
||||
<AssigneesList userIds={projectMembersIds} length={3} showLength />
|
||||
</div>
|
||||
) : (
|
||||
<span className="text-sm italic text-custom-text-400">No Member Yet</span>
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export const MembersSelect: React.FC<Props> = ({
|
|||
>
|
||||
<div className="flex items-center cursor-pointer h-full w-full gap-2 text-custom-text-200">
|
||||
{value && value.length > 0 && Array.isArray(value) ? (
|
||||
<AssigneesList userIds={value} length={3} showLength={true} />
|
||||
<AssigneesList userIds={value} length={3} showLength />
|
||||
) : (
|
||||
<span
|
||||
className="flex items-center justify-between gap-1 h-full w-full text-xs px-2.5 py-1 rounded border-[0.5px] border-custom-border-300 duration-300 focus:outline-none
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export const ProjectSidebarList: FC = observer(() => {
|
|||
{(provided) => (
|
||||
<div ref={provided.innerRef} {...provided.droppableProps}>
|
||||
{orderedFavProjects && orderedFavProjects.length > 0 && (
|
||||
<Disclosure as="div" className="flex flex-col" defaultOpen={true}>
|
||||
<Disclosure as="div" className="flex flex-col" defaultOpen>
|
||||
{({ open }) => (
|
||||
<>
|
||||
{!isCollapsed && (
|
||||
|
|
@ -186,7 +186,7 @@ export const ProjectSidebarList: FC = observer(() => {
|
|||
{(provided) => (
|
||||
<div ref={provided.innerRef} {...provided.droppableProps}>
|
||||
{orderedJoinedProjects && orderedJoinedProjects.length > 0 && (
|
||||
<Disclosure as="div" className="flex flex-col" defaultOpen={true}>
|
||||
<Disclosure as="div" className="flex flex-col" defaultOpen>
|
||||
{({ open }) => (
|
||||
<>
|
||||
{!isCollapsed && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue