Skip to content

Commit

Permalink
connect the project iconography
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Jun 21, 2023
1 parent e84577f commit e57f603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/Components/OpenModelControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import useStore from '../store/useStore'
// import {handleBeforeUnload} from '../utils/event'
import {getOrganizations, getRepositories, getFiles, getUserRepositories} from '../utils/GitHub'
import {RectangularButton} from '../Components/Buttons'
import OpenIcon from '../assets/icons/Open.svg'
// import OpenIcon from '../assets/icons/Open.svg'
import ViewCubeIcon from '../assets/icons/view/ViewCube1.svg'
// import OpenSaveIcon from '../assets/icons/OpenNew.svg'
import UploadIcon from '../assets/icons/Upload.svg'
import GitHubIcon from '@mui/icons-material/GitHub'


/**
Expand Down Expand Up @@ -55,7 +57,7 @@ export default function OpenModelControl({fileOpen, modelPath, isLocalModel}) {
title={'Projects'}
showTitle={false}
onClick={() => setIsDialogDisplayed(true)}
icon={<OpenIcon/>}
icon={<ViewCubeIcon/>}
placement={'bottom'}
selected={isDialogDisplayed}
dataTestId='open-ifc'
Expand Down Expand Up @@ -134,8 +136,8 @@ function OpenModelDialog({isDialogDisplayed, setIsDialogDisplayed, fileOpen, org

return (
<Dialog
icon={<OpenIcon/>}
headerText={'Projects'}
icon={<GitHubIcon style={{opacity: .5}}/>}
headerText={'Github Repos'}
isDialogDisplayed={isDialogDisplayed}
setIsDialogDisplayed={setIsDialogDisplayed}
actionTitle={'Open local file'}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ProjectPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default function ProjectPanel({fileOpen, modelPathDefined, isLocalModel})
alignItems: 'center',
}}
>
{showSample ? 'Sample Projects' : 'Login'}
{showSample ? 'Projects' : 'Login'}
</Typography>
</Box>
<Box
Expand Down

0 comments on commit e57f603

Please sign in to comment.