Added title in about us and updated apis

This commit is contained in:
2024-10-05 11:09:16 +08:00
parent 68378d55ac
commit f20685beea
29 changed files with 93 additions and 16 deletions

View File

@@ -51,7 +51,7 @@ function EditCourse() {
return (
<Container maxW="full">
<Heading size="lg" textAlign={{ base: "center", md: "left" }} py={12}>
User Settings
Courses
</Heading>
<Tabs variant="enclosed">
<TabList>

View File

@@ -76,6 +76,7 @@ function AboutUsTable() {
<Thead>
<Tr>
<Th>ID</Th>
<Th>Title</Th>
<Th>Description</Th>
<Th>Image</Th>
<Th>Index</Th>
@@ -97,6 +98,12 @@ function AboutUsTable() {
{aboutUs?.data.map((aboutUs) => (
<Tr key={aboutUs.id} opacity={isPlaceholderData ? 0.5 : 1}>
<Td isTruncated maxWidth="50">{aboutUs.id}</Td>
<Td
whiteSpace="pre-line"
maxWidth="350px"
>
{parse(aboutUs.title)}
</Td>
<Td
whiteSpace="pre-line"