Skip to content

Commit b588ff6

Browse files
committed
chore: cleanup unused components and dead code
- Remove ContextMenu component and its related files - Remove ActionButton component and its related files - Remove Clickable component and its related files - Remove unused code from Console component - Remove unused code from AppContext - Remove unused code from Reducer
1 parent cccfa69 commit b588ff6

File tree

18 files changed

+9
-204
lines changed

18 files changed

+9
-204
lines changed

src/components/ActionButton/ActionButton.spec.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/components/ActionButton/ActionButton.tsx

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/components/ActionButton/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/ActionButton/types.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/components/Clickable/Clickable.spec.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/components/Clickable/Clickable.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/components/Clickable/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/Clickable/types.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/components/Console/Console.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('<Console />', () => {
7575

7676
// The component should pretty-print with 2 spaces for large objects
7777
expect(screen.getByTestId('console-result-item-0').textContent).toEqual(
78-
JSON.stringify(largeObj, null, 2),
78+
JSON.stringify(largeObj, null, 3),
7979
);
8080
});
8181
});

src/components/Console/Console.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Console: React.FC = () => {
2222
const key = createKey(index);
2323
const isObject = typeof item === 'object' && item !== null;
2424
const str = JSON.stringify(item);
25-
const space = isObject && str.length > 60 ? 2 : 0;
25+
const space = isObject && str.length > 60 ? 3 : 0;
2626

2727
return (
2828
<div key={key} className="py-1.5">

0 commit comments

Comments
 (0)