Skip to content

Commit e937d99

Browse files
committed
Fix code formatting issues in TreeViewComponent
1 parent b50a469 commit e937d99

1 file changed

Lines changed: 65 additions & 65 deletions

File tree

src/components/TreeViewComponent.tsx

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,74 +2533,74 @@ const TreeViewComponent = (_props: TreeViewComponentProps) => {
25332533

25342534
{contextMenu && (
25352535
<Menu
2536-
open={Boolean(contextMenu)}
2537-
onClose={handleMenuClose}
2538-
anchorReference="anchorPosition"
2539-
anchorPosition={contextMenu ? { top: contextMenu.y, left: contextMenu.x } : undefined}
2540-
PaperProps={{
2541-
style: {
2542-
backgroundColor: theme === 'dark' ? '#1F2937' : '#fff',
2543-
color: theme === 'dark' ? '#fff' : '#333',
2544-
boxShadow:
2545-
theme === 'dark'
2546-
? '0 4px 20px rgba(0, 0, 0, 0.5)'
2547-
: '0 4px 20px rgba(0, 0, 0, 0.15)',
2548-
},
2549-
}}
2550-
>
2551-
<MenuItem
2552-
onClick={() => handleMenuAction('Details')}
2553-
sx={{
2554-
color: theme === 'dark' ? '#fff' : '#333',
2555-
'&:hover': {
2556-
backgroundColor:
2557-
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2536+
open={Boolean(contextMenu)}
2537+
onClose={handleMenuClose}
2538+
anchorReference="anchorPosition"
2539+
anchorPosition={contextMenu ? { top: contextMenu.y, left: contextMenu.x } : undefined}
2540+
PaperProps={{
2541+
style: {
2542+
backgroundColor: theme === 'dark' ? '#1F2937' : '#fff',
2543+
color: theme === 'dark' ? '#fff' : '#333',
2544+
boxShadow:
2545+
theme === 'dark'
2546+
? '0 4px 20px rgba(0, 0, 0, 0.5)'
2547+
: '0 4px 20px rgba(0, 0, 0, 0.15)',
25582548
},
25592549
}}
25602550
>
2561-
Details
2562-
</MenuItem>
2563-
{contextMenu.nodeType !== 'context' && (
2564-
<React.Fragment>
2565-
<MenuItem
2566-
onClick={() => handleMenuAction('Delete')}
2567-
sx={{
2568-
color: theme === 'dark' ? '#fff' : '#333',
2569-
'&:hover': {
2570-
backgroundColor:
2571-
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2572-
},
2573-
}}
2574-
>
2575-
Delete
2576-
</MenuItem>
2577-
<MenuItem
2578-
onClick={() => handleMenuAction('Edit')}
2579-
sx={{
2580-
color: theme === 'dark' ? '#fff' : '#333',
2581-
'&:hover': {
2582-
backgroundColor:
2583-
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2584-
},
2585-
}}
2586-
>
2587-
Edit
2588-
</MenuItem>
2589-
<MenuItem
2590-
onClick={() => handleMenuAction('Logs')}
2591-
sx={{
2592-
color: theme === 'dark' ? '#fff' : '#333',
2593-
'&:hover': {
2594-
backgroundColor:
2595-
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2596-
},
2597-
}}
2598-
>
2599-
Logs
2600-
</MenuItem>
2601-
</React.Fragment>
2602-
)}
2603-
</Menu>
2551+
<MenuItem
2552+
onClick={() => handleMenuAction('Details')}
2553+
sx={{
2554+
color: theme === 'dark' ? '#fff' : '#333',
2555+
'&:hover': {
2556+
backgroundColor:
2557+
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2558+
},
2559+
}}
2560+
>
2561+
Details
2562+
</MenuItem>
2563+
{contextMenu.nodeType !== 'context' && (
2564+
<React.Fragment>
2565+
<MenuItem
2566+
onClick={() => handleMenuAction('Delete')}
2567+
sx={{
2568+
color: theme === 'dark' ? '#fff' : '#333',
2569+
'&:hover': {
2570+
backgroundColor:
2571+
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2572+
},
2573+
}}
2574+
>
2575+
Delete
2576+
</MenuItem>
2577+
<MenuItem
2578+
onClick={() => handleMenuAction('Edit')}
2579+
sx={{
2580+
color: theme === 'dark' ? '#fff' : '#333',
2581+
'&:hover': {
2582+
backgroundColor:
2583+
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2584+
},
2585+
}}
2586+
>
2587+
Edit
2588+
</MenuItem>
2589+
<MenuItem
2590+
onClick={() => handleMenuAction('Logs')}
2591+
sx={{
2592+
color: theme === 'dark' ? '#fff' : '#333',
2593+
'&:hover': {
2594+
backgroundColor:
2595+
theme === 'dark' ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.04)',
2596+
},
2597+
}}
2598+
>
2599+
Logs
2600+
</MenuItem>
2601+
</React.Fragment>
2602+
)}
2603+
</Menu>
26042604
)}
26052605
</Box>
26062606

0 commit comments

Comments
 (0)