* Course landing page * Add ai course page * wip * wip * wip * wip * wip * wip * wip * wip: error handling * wip * wip * wip * wip: ai course progress * wip * wip * wip * feat: code highlighting * feat: usage limit * feat: follow up message * Update UI * wip * Add course content * wip: autogrow textarea & examples * Update types * Update * fix: add highlight to the AI chat * UI changes * Refactor * Update * Improve outline style * Improve spacing * Improve spacing * UI changes for sidebar * Update UI for sidebar * Improve course UI * Mark done, undone * Add toggle lesson done/undone * Update forward backward UI * wip * Minor ui change * Responsiveness of sidebar * wip * wip * wip: billing page * wip * Update UI * fix: hide upgrade if paid user * feat: token usage * feat: list ai courses * fix: limit for followup * Course content responsiveness * Make course content responsive * Responsiveness * Outline button * Responsiveness of course content * Responsiveness of course content * Add course upgrade button * Update design for upgrade * Improve logic for upgrade and limits button * Limits and errors * Add lesson count * Add course card * Improve UI for course generator * Update course functionality * Refactor AI course generation * Responsiveness of screen * Improve * Add responsiveness * Improve empty billing page design * Add empty billing screen * Update UI for billing page * Update UI for billing page * Update UI for billing page * Update billing page design * Update * Remove sidebar * Update --------- Co-authored-by: Arik Chakma <arikchangma@gmail.com>
23 lines
500 B
TypeScript
23 lines
500 B
TypeScript
import { useEffect, useState } from 'react';
|
|
import { getUrlParams } from '../../lib/browser';
|
|
import { VerifyUpgrade } from "./VerifyUpgrade";
|
|
|
|
export function CheckSubscriptionVerification() {
|
|
const [shouldVerifyUpgrade, setShouldVerifyUpgrade] = useState(false);
|
|
|
|
useEffect(() => {
|
|
const params = getUrlParams();
|
|
if (params.s !== '1') {
|
|
return;
|
|
}
|
|
|
|
setShouldVerifyUpgrade(true);
|
|
}, []);
|
|
|
|
if (!shouldVerifyUpgrade) {
|
|
return null;
|
|
}
|
|
|
|
return <VerifyUpgrade />;
|
|
}
|