fix: Header Role Indicator + Disable course creation wording if user isn't connected

This commit is contained in:
swve 2024-03-19 22:34:28 +01:00
parent a124cde229
commit 7398e9e946
9 changed files with 85 additions and 169 deletions

View file

@ -14,6 +14,7 @@ import CollectionThumbnail from '@components/Objects/Thumbnails/CollectionThumbn
import AuthenticatedClientElement from '@components/Security/AuthenticatedClientElement'
import NewCourseButton from '@components/StyledElements/Buttons/NewCourseButton'
import NewCollectionButton from '@components/StyledElements/Buttons/NewCollectionButton'
import ContentPlaceHolderIfUserIsNotAdmin from '@components/ContentPlaceHolder'
type MetadataProps = {
params: { orgslug: string }
@ -139,7 +140,9 @@ const OrgHomePage = async (params: any) => {
No collections yet
</h1>
<p className="text-md text-gray-400">
Create a collection to group courses together
<ContentPlaceHolderIfUserIsNotAdmin
text="Create collections to group courses together"
/>
</p>
</div>
</div>
@ -206,7 +209,7 @@ const OrgHomePage = async (params: any) => {
No courses yet
</h1>
<p className="text-md text-gray-400">
Create a course to add content
<ContentPlaceHolderIfUserIsNotAdmin text='Create courses to add content' />
</p>
</div>
</div>