|
|
@@ -36,6 +36,8 @@ const DashboardDefault = () => { |
|
|
|
backgroundPosition: 'right' |
|
|
|
} |
|
|
|
|
|
|
|
const { locale } = intl; |
|
|
|
|
|
|
|
const getWelcomeMsg=()=>{ |
|
|
|
var current = new Date() |
|
|
|
var curHr = current.getHours() |
|
|
@@ -56,7 +58,7 @@ const DashboardDefault = () => { |
|
|
|
<Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> |
|
|
|
{/* <Typography variant="h5">我的公共啟事</Typography> */} |
|
|
|
<Typography color='#FFF' variant="h5" sx={{ ml: 10, display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
|
{isORGLoggedIn() ? userData.fullenName : userData.fullchName}, {getWelcomeMsg()} |
|
|
|
{isORGLoggedIn() ? userData.fullenName: (locale === 'en' ?userData.fullenName: userData.fullchName)}, {getWelcomeMsg()} |
|
|
|
</Typography> |
|
|
|
</Stack> |
|
|
|
</div> |
|
|
|