Skip to content

Commit

Permalink
Merge pull request #196 from shreyas1434shinde/calenderView
Browse files Browse the repository at this point in the history
Issue #PS-652 fix:Login button position should be dynamic
  • Loading branch information
itsvick authored May 31, 2024
2 parents 523ce3d + 35c9821 commit bcdf2a8
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 170 deletions.
3 changes: 3 additions & 0 deletions src/assets/images/account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/images/menuIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 19 additions & 9 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ import LogoutOutlinedIcon from '@mui/icons-material/LogoutOutlined';
import MenuIcon from '@mui/icons-material/Menu';
import MenuItem from '@mui/material/MenuItem';
import PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';
import accountIcon from './../assets/images/account.svg';
import dynamic from 'next/dynamic';
import logoLight from '../../public/images/logo-light.png';
import menuIcon from '../assets/images/menuIcon.svg';
import { useTheme } from '@mui/material/styles';
import { useTranslation } from 'next-i18next';

Expand Down Expand Up @@ -120,11 +122,11 @@ const Header: React.FC = () => {
>
<Stack
width={'100%'}
padding={'8px 0'}
// padding={'8px 0'}
direction="row"
justifyContent={'space-between'}
alignItems={'center'}
height="auto"
height="64px"
boxShadow="0px 1px 3px 0px #0000004D"
>
<Box
Expand All @@ -133,11 +135,12 @@ const Header: React.FC = () => {
sx={{ cursor: 'pointer' }}
paddingLeft={'1rem'}
>
<MenuIcon
style={{
fill: theme.palette.warning['A200'],
}}
className="menuSvg"
<Image
height={12}
width={18}
src={menuIcon}
alt="logo"
style={{ cursor: 'pointer' }}
/>
</Box>

Expand All @@ -162,11 +165,18 @@ const Header: React.FC = () => {
flexDirection={'column'}
mt={'0.5rem'}
>
<AccountCircleIcon
<Image
height={20}
width={20}
src={accountIcon}
alt="logo"
style={{ cursor: 'pointer' }}
/>
{/* <AccountCircleIcon
fontSize="large"
className="accIcon"
style={{ fill: theme.palette.warning['A200'] }}
/>
/> */}
</Box>
<div style={{ position: 'absolute' }}>
<StyledMenu
Expand Down
Loading

0 comments on commit bcdf2a8

Please sign in to comment.