Changes to the ai tutor URL
This commit is contained in:
1 parent
0d9374285b
commit
b75d36a8c0
32 files changed
+80
-97
No files matched your search
@@ -68,7 +68,7 @@ export function AICourse(props: AICourseProps) {
|
||||
});
|
||||
}
|
||||
|
||||
window.location.href = `/ai-tutor/search?term=${encodeURIComponent(keyword)}&difficulty=${difficulty}&id=${sessionId}`;
|
||||
window.location.href = `/ai/search?term=${encodeURIComponent(keyword)}&difficulty=${difficulty}&id=${sessionId}`;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -63,7 +63,7 @@ export function AICourseActions(props: AICourseActionsType) {
|
||||
{isOpen && (
|
||||
<div className="absolute right-0 top-8 z-10 w-48 overflow-hidden rounded-md border border-gray-200 bg-white shadow-lg">
|
||||
<a
|
||||
href={`/ai-tutor/${courseSlug}`}
|
||||
href={`/ai/${courseSlug}`}
|
||||
className="flex w-full items-center gap-1.5 p-2 text-sm font-medium text-gray-500 hover:bg-gray-100 hover:text-black disabled:cursor-not-allowed disabled:opacity-70"
|
||||
>
|
||||
<Play className="h-3.5 w-3.5" />
|
||||
|
||||
@@ -35,7 +35,7 @@ export function AICourseCard(props: AICourseCardProps) {
|
||||
return (
|
||||
<div className="relative">
|
||||
<a
|
||||
href={`/ai-tutor/${course.slug}`}
|
||||
href={`/ai/${course.slug}`}
|
||||
className="hover:border-gray-3 00 group relative flex w-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-white p-4 text-left transition-all hover:bg-gray-50"
|
||||
>
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
@@ -189,7 +189,7 @@ export function AICourseContent(props: AICourseContentProps) {
|
||||
|
||||
<p className="mt-5 text-sm text-black">
|
||||
<a
|
||||
href="/ai-tutor"
|
||||
href="/ai"
|
||||
className="font-medium underline underline-offset-2"
|
||||
>
|
||||
Back to AI Tutor
|
||||
@@ -201,7 +201,7 @@ export function AICourseContent(props: AICourseContentProps) {
|
||||
{(isNotFound || !showUpgradeButton) && (
|
||||
<div className="my-5">
|
||||
<a
|
||||
href="/ai-tutor"
|
||||
href="/ai"
|
||||
className="rounded-md bg-black px-6 py-2 text-sm font-medium text-white hover:bg-opacity-80"
|
||||
>
|
||||
Create a course with AI
|
||||
@@ -222,7 +222,7 @@ export function AICourseContent(props: AICourseContentProps) {
|
||||
<div className="border-b border-gray-200 bg-gray-100">
|
||||
<div className="flex items-center justify-between px-4 py-2">
|
||||
<a
|
||||
href="/ai-tutor"
|
||||
href="/ai"
|
||||
onClick={(e) => {
|
||||
if (isViewingLesson) {
|
||||
e.preventDefault();
|
||||
|
||||
@@ -101,7 +101,7 @@ export function GenerateAICourse(props: GenerateAICourseProps) {
|
||||
options;
|
||||
|
||||
if (!isLoggedIn()) {
|
||||
window.location.href = '/ai-tutor';
|
||||
window.location.href = '/ai';
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export function GetAICourse(props: GetAICourseProps) {
|
||||
|
||||
useEffect(() => {
|
||||
if (!isLoggedIn()) {
|
||||
window.location.href = '/ai-tutor';
|
||||
window.location.href = '/ai';
|
||||
}
|
||||
}, [isLoggedIn]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user