Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
corn-potage committed Sep 17, 2024
1 parent be7e275 commit 7f89001
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
1 change: 0 additions & 1 deletion src/renderer/Generics/redesign/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export const Checkbox = ({
</span>
)}
</span>
{/* biome-ignore lint: labelForCheckbox */}
{label && <span className={checkboxLabel}>{label}</span>}
</label>
);
Expand Down
54 changes: 26 additions & 28 deletions src/renderer/Presentational/AddNode/AddNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,34 +174,32 @@ const AddNode = ({
isDown={!isOptionsOpen}
/>
{isOptionsOpen && (
<>
<div style={{ width: '100%' }}>
{nodePackageLibrary &&
Object.keys(nodePackageLibrary).map((nodePackageId) => {
const nodeOption = nodePackageLibrary[nodePackageId];
if (
nodeOption?.category.includes('utility') ||
nodeOption?.category.includes('gaming')
) {
return (
<SelectCard
key={nodeOption.specId}
title={nodeOption.displayName}
iconUrl={nodeOption.iconUrl}
iconId={nodeOption.specId as keyof NodeIcons}
info={
nodeOption.selectCardTagline
? nodeOption.selectCardTagline
: nodeOption.displayTagline
}
onClick={() => onChangeNode(nodeOption)}
isSelected={sSelectedNode?.specId === nodeOption.specId}
/>
);
}
})}
</div>
</>
<div style={{ width: '100%' }}>
{nodePackageLibrary &&
Object.keys(nodePackageLibrary).map((nodePackageId) => {
const nodeOption = nodePackageLibrary[nodePackageId];
if (
nodeOption?.category.includes('utility') ||
nodeOption?.category.includes('gaming')
) {
return (
<SelectCard
key={nodeOption.specId}
title={nodeOption.displayName}
iconUrl={nodeOption.iconUrl}
iconId={nodeOption.specId as keyof NodeIcons}
info={
nodeOption.selectCardTagline
? nodeOption.selectCardTagline
: nodeOption.displayTagline
}
onClick={() => onChangeNode(nodeOption)}
isSelected={sSelectedNode?.specId === nodeOption.specId}
/>
);
}
})}
</div>
)}

{/* <SpecialSelect
Expand Down

0 comments on commit 7f89001

Please sign in to comment.