Skip to content

Commit

Permalink
Merge pull request #745 from NSUWAL123/create-project-tags
Browse files Browse the repository at this point in the history
Create project tags
  • Loading branch information
varun2948 authored Aug 22, 2023
2 parents 2ad187c + 2d4604d commit b1a3741
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/frontend/main/src/views/CreateOrganization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const CreateOrganizationForm = () => {
</CoreModules.Box>
<CoreModules.Box
sx={{
width: 600,
width: '85%',
maxWidth: 600,
padding: 3,
cursor: 'pointer',
background: '#ffff',
Expand Down
15 changes: 12 additions & 3 deletions src/frontend/main/src/views/MainView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import CustomizedSnackbars from '../utilities/CustomizedSnackbar';
import { CommonActions } from '../store/slices/CommonSlice';
import Loader from '../utilities/AppLoader';
import MappingHeader from '../utilities/MappingHeader';
import { useSearchParams } from 'react-router-dom';

const MainView = () => {
const dispatch = CoreModules.useAppDispatch();
const [searchParams, setSearchParams] = useSearchParams();
const { windowSize } = windowDimention();
const checkTheme = CoreModules.useAppSelector((state) => state.theme.hotTheme);
const theme = CoreModules.createTheme(checkTheme);
Expand All @@ -26,6 +28,9 @@ const MainView = () => {
}),
);
};

const popupInParams = searchParams.get('popup');

return (
<CoreModules.ThemeProvider theme={theme}>
<CustomizedSnackbars
Expand All @@ -40,11 +45,15 @@ const MainView = () => {
<CoreModules.Paper>
<CoreModules.Container disableGutters={true} maxWidth={false}>
<CoreModules.Stack sx={{ height: '100vh' }}>
<MappingHeader />
<PrimaryAppBar />
{popupInParams !== 'true' && (
<div>
<MappingHeader />
<PrimaryAppBar />
</div>
)}
<CoreModules.Stack
className="mainview"
sx={{ height: windowSize.width <= 599 ? '90vh' : '92vh', overflow: 'auto' }}
sx={{ height: popupInParams ? '100vh' : windowSize.width <= 599 ? '90vh' : '92vh', overflow: 'auto' }}
>
<CoreModules.Outlet />
{/* Footer */}
Expand Down

0 comments on commit b1a3741

Please sign in to comment.