Skip to content

Commit efe117b

Browse files
committed
fix iframe src url
1 parent eb7eff6 commit efe117b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/client/components/Admin/Feedbacks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Feedbacks() {
1515
<Paper key={f.id} sx={{ p: 1, my: 4, display: 'flex', gap: 2 }}>
1616
<Box sx={{ flex: 1 }}>
1717
<Typography variant="body2" color="textSecondary" sx={{ mb: 1 }}>
18-
{f.user.firstNames} {f.user.lastName}, {f.user.primaryEmail}. {f.responseWanted ? 'Response wanted!' : ''}
18+
{f.user.firstNames} {f.user.lastName}, {f.user.primaryEmail}. {f.responseWanted ? '- Response wanted!' : '- No response wanted.'}
1919
</Typography>
2020
<Typography variant="body1">{f.feedback}</Typography>
2121
</Box>

src/client/components/common/IframeCopy.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { IconButton, Tooltip } from '@mui/material'
22
import HtmlIcon from '@mui/icons-material/Html'
33
import { useTranslation } from 'react-i18next'
4+
import { PUBLIC_URL } from '../../../config'
45

56
export const IframeCopy = ({ courseId, promptId, model }: { courseId: string; promptId?: string; model?: string }) => {
67
const { t } = useTranslation()
78

8-
let iframeSrc = `${window.location.origin}/${courseId}?embedded=true`
9+
let iframeSrc = `${window.location.origin}${PUBLIC_URL}/${courseId}?embedded=true`
910

1011
if (promptId) {
1112
iframeSrc += `&promptId=${promptId}`

0 commit comments

Comments
 (0)