Switch to BiomeJS (#306)

This commit is contained in:
Gregory Schier
2025-11-23 08:38:13 -08:00
committed by GitHub
parent 2bac610efe
commit ec3e2e16a9
332 changed files with 3007 additions and 4097 deletions

View File

@@ -24,8 +24,8 @@ import { Separator } from '../core/Separator';
import { SplitLayout } from '../core/SplitLayout';
import { HStack } from '../core/Stacks';
import { EmptyStateText } from '../EmptyStateText';
import { handlePushResult } from './git-util';
import { gitCallbacks } from './callbacks';
import { handlePushResult } from './git-util';
interface Props {
syncDir: string;
@@ -281,10 +281,10 @@ function TreeNodeChildren({
/>
</div>
{node.children.map((childNode, i) => {
{node.children.map((childNode) => {
return (
<TreeNodeChildren
key={childNode.status.relaPath + i}
key={childNode.status.relaPath + childNode.status.status + childNode.status.staged}
node={childNode}
depth={depth + 1}
onCheck={onCheck}
@@ -353,11 +353,11 @@ function nodeCheckedStatus(root: CommitTreeNode): CheckboxProps['checked'] {
if (numVisited === numChecked + numCurrent) {
return true;
} else if (numChecked === 0) {
return false;
} else {
return 'indeterminate';
}
if (numChecked === 0) {
return false;
}
return 'indeterminate';
}
function setCheckedAndChildren(