diff --git a/frontend/src/components/MainContent.js b/frontend/src/components/MainContent.js index 1af82a4..f47e73f 100644 --- a/frontend/src/components/MainContent.js +++ b/frontend/src/components/MainContent.js @@ -1,6 +1,6 @@ import React, { useState, useCallback, useEffect } from 'react'; -import { Breadcrumbs, Grid, Tabs, Dot } from '@geist-ui/core'; -import { Code, Eye } from '@geist-ui/icons'; +import { Tabs, Breadcrumbs, Group, Box, Text, Flex } from '@mantine/core'; +import { IconCode, IconEye, IconPointFilled } from '@tabler/icons-react'; import FileActions from './FileActions'; import FileTree from './FileTree'; @@ -73,72 +73,81 @@ const MainContent = () => { ); const renderBreadcrumbs = () => { - if (!selectedFile) return
; + if (!selectedFile) return null; const pathParts = selectedFile.split('/'); + const items = pathParts.map((part, index) => ( + + {part} + + )); + return ( -
- - {pathParts.map((part, index) => ( - {part} - ))} - + + {items} {hasUnsavedChanges && ( - + )} -
+ ); }; return ( - <> - - -
- - -
-
- -
- {renderBreadcrumbs()} - - } value="source" /> - } value="preview" /> - -
-
- -
-
-
+ + + + + + + + {renderBreadcrumbs()} + + + }> + Source + + }> + Preview + + + + + + + + - + ); };