Role Permission ve Dashboard düzenlemesi
This commit is contained in:
parent
246cea49a9
commit
9c67c5c102
4 changed files with 8 additions and 11 deletions
|
|
@ -12,14 +12,9 @@ const Dashboard = () => {
|
|||
title={translate('::' + 'Dashboard')}
|
||||
defaultTitle="Sözsoft Kurs Platform"
|
||||
/>
|
||||
<div className="flex min-h-screen bg-gray-50 dark:bg-gray-900">
|
||||
<div className="flex-1 overflow-y-auto">
|
||||
<IntranetDashboard />
|
||||
</div>
|
||||
</div>
|
||||
<IntranetDashboard />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Dashboard
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ function RolesPermission({
|
|||
|
||||
setTimeout(async () => {
|
||||
getConfig(true)
|
||||
}, 4000)
|
||||
}, 6000)
|
||||
}
|
||||
|
||||
function getPermissionsWithGroupName(groups: PermissionGroupDto[]): PermissionWithGroupName[] {
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ function UsersPermission({
|
|||
|
||||
setTimeout(async () => {
|
||||
getConfig(true)
|
||||
}, 2000)
|
||||
}, 6000)
|
||||
}
|
||||
|
||||
function getPermissionsWithGroupName(groups: PermissionGroupDto[]): PermissionWithGroupName[] {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import AnnouncementDetailModal from './modals/AnnouncementDetailModal'
|
|||
// Social Wall
|
||||
import SocialWall from './SocialWall'
|
||||
import { Announcement, Survey } from '@/types/intranet'
|
||||
import { Container } from '@/components/shared'
|
||||
|
||||
dayjs.locale('tr')
|
||||
dayjs.extend(relativeTime)
|
||||
|
|
@ -72,12 +73,13 @@ const IntranetDashboard: React.FC = () => {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900 p-4">
|
||||
<Container>
|
||||
<div className="mx-auto space-y-4">
|
||||
<div className="flex items-center justify-end">
|
||||
<div>
|
||||
<p className="text-gray-600 dark:text-gray-400 mt-1">
|
||||
<span className="font-medium">Hoş geldiniz,</span> {dayjs().format('DD MMMM YYYY dddd')}
|
||||
<span className="font-medium">Hoş geldiniz,</span>{' '}
|
||||
{dayjs().format('DD MMMM YYYY dddd')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -162,7 +164,7 @@ const IntranetDashboard: React.FC = () => {
|
|||
/>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue