Skip to content

Commit

Permalink
subtract search from the controls group
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Oct 7, 2023
1 parent de4fef9 commit 33ca71b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
18 changes: 4 additions & 14 deletions src/Components/ControlsGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import ButtonGroup from '@mui/material/ButtonGroup'
import OpenModelControl from './OpenModelControl'
import useStore from '../store/useStore'
import {TooltipIconButton} from './Buttons'
// import HistoryIcon from '@mui/icons-material/History'
import SearchOutlinedIcon from '@mui/icons-material/SearchOutlined'
import HistoryIcon from '@mui/icons-material/History'
import TreeIcon from '../assets/icons/Tree.svg'


Expand All @@ -16,20 +15,11 @@ import TreeIcon from '../assets/icons/Tree.svg'
* @return {React.Component}
*/
export default function OperationsGroup({fileOpen}) {
const toggleIsSearchVisible = useStore((state) => state.toggleIsSearchVisible)
const toggleIsNavigationVisible = useStore((state) => state.toggleIsNavigationVisible)

return (
<ButtonGroup orientation='horizontal'>
<OpenModelControl fileOpen={fileOpen}/>
<TooltipIconButton
title='Search'
icon={<SearchOutlinedIcon/>}
placement='bottom'
aboutInfo={false}
selected={true}
onClick={toggleIsSearchVisible}
/>
<TooltipIconButton
title='Navigation'
icon={<TreeIcon className='icon-share' color='secondary' style={{width: '17px', height: '17px'}}/>}
Expand All @@ -38,13 +28,13 @@ export default function OperationsGroup({fileOpen}) {
selected={true}
onClick={toggleIsNavigationVisible}
/>
{/* <TooltipIconButton
<TooltipIconButton
title='Project History'
icon={<HistoryIcon className='icon-share' color='secondary'/>}
placement='bottom'
selected={true}
onClick={() => (isSelected)}
/> */}
onClick={toggleIsNavigationVisible}
/>
</ButtonGroup>
)
}
2 changes: 1 addition & 1 deletion src/Components/OpenModelControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function OpenModelControl({fileOpen}) {
title={'Open IFC'}
onClick={() => setIsDialogDisplayed(true)}
icon={<CreateNewFolderIcon className='icon-share' color='secondary'/>}
placement={'right'}
placement={'bottom'}
selected={true}
dataTestId='open-ifc'
/>
Expand Down

0 comments on commit 33ca71b

Please sign in to comment.