Skip to content

Commit

Permalink
Merge pull request #248 from piyushyadav1617/dev-branch
Browse files Browse the repository at this point in the history
Updates: Added support link and changed text on upgrade and plans page
  • Loading branch information
piyushyadav1617 authored Nov 24, 2023
2 parents 39a4bae + b128c2f commit 6052602
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 32 deletions.
29 changes: 12 additions & 17 deletions src/app/dashboard/(organisation)/[slug]/upgrade&plans/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function UpgradeAndPlansPage() {
async function cancelSub() {
setLoading2(true);
try {
const response = await fetch("https://api.trustauthx.com/subscriptions", {
const response = await fetch('https://api.trustauthx.com/subscriptions', {
method: 'DELETE',
headers: {
accept: 'application/json',
Expand Down Expand Up @@ -106,7 +106,7 @@ function UpgradeAndPlansPage() {
title: 'Subscription Cancelled successfully'
// description: 'Subscription Cancelled successfully'
});
router.push("/dashboard");
router.push('/dashboard');
setLoading2(false);

return;
Expand Down Expand Up @@ -168,11 +168,10 @@ function UpgradeAndPlansPage() {
</CardHeader>
<CardContent className="flex flex-col md:flex-row px-10 gap-8">
<p className="leading-tight text-slate-500 font-normal">
Implement an AI-based security system within your Authx-powered
platform to enhance threat detection, response, and overall
cybersecurity capabilities. By leveraging artificial intelligence
and machine learning algorithms, you can bolster your platform's
security defenses and adapt to evolving threats effectively.
Manage your payment methods and view your invoices. You can add,
remove, or update your payment methods. Additionally, you can view
your past invoices, download them, or request them to be sent to
your email.
</p>
<Button variant={'authx'} className="w-48" onClick={managePlan}>
{loading1 ? (
Expand All @@ -196,11 +195,9 @@ function UpgradeAndPlansPage() {
</CardHeader>
<CardContent className="flex flex-col md:flex-row px-10 gap-8">
<p className="leading-tight text-slate-500 font-normal">
Implement an AI-based security system within your Authx-powered
platform to enhance threat detection, response, and overall
cybersecurity capabilities. By leveraging artificial intelligence
and machine learning algorithms, you can bolster your platform's
security defenses and adapt to evolving threats effectively.
Upgrade your current plan to the Enterprise plan. The Enterprise
plan offers advanced features and capabilities that can help boost
your organization&apos;s productivity and efficiency.
</p>

<UpgradeToEnterprise />
Expand All @@ -215,11 +212,9 @@ function UpgradeAndPlansPage() {
</CardHeader>
<CardContent className="flex flex-col md:flex-row px-10 gap-8">
<p className="leading-tight text-slate-500 font-normal">
Implement suspicious IP throttling within your Authx-powered
platform to mitigate the risks posed by suspicious or malicious IP
addresses. By detecting and limiting the activities of such IPs,
you can protect your platform from various types of attacks and
ensure a secure environment for legitimate users.
If you choose to cancel your subscription, you will no longer be
billed, and on the terms of cancellation we will pause your
organization and all activities will be suspended.
</p>

<Dialog>
Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const Sidebar = () => {
}`}
>
<Link
href={'#'}
href={'https://tally.so/r/wMNB8p'}
className={`hover:bg-white hover:bg-opacity-40 ${
open ? 'ml-8 pl-8 w-3/4 py-2' : 'p-2'
} mb-4 rounded-md flex items-center space-x-2`}
Expand Down
18 changes: 4 additions & 14 deletions src/app/dashboard/components/sidebarOrg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const SidebarOrg = () => {
''
)}
</h3>
<div className={"main-menu flex flex-col w-full"}>
<div className={'main-menu flex flex-col w-full'}>
<h4 className="text-[0.75rem] opacity-50 ml-8 pl-8">
{open ? (
isLoading ? (
Expand Down Expand Up @@ -284,17 +284,7 @@ export const SidebarOrg = () => {
</span>
{open ? <span>Manage API keys</span> : ''}
</Link>
{/* <Link
href={'#'}
className={`hover:bg-white hover:bg-opacity-40 ${
open ? 'ml-8 pl-8 w-3/4 py-2 ' : 'p-2'
} mb-4 rounded-md flex items-center space-x-2`}
>
<span>
<TeamAndMembersSVG />
</span>
{open ? <span>Team & Members</span> : ''}
</Link> */}

<Link
href={`/dashboard/${slug}/upgrade&plans`}
className={`hover:bg-white hover:bg-opacity-40 ${
Expand All @@ -308,7 +298,7 @@ export const SidebarOrg = () => {
</Link>
</div>
</div>
<div className={"General flex flex-col w-full"}>
<div className={'General flex flex-col w-full'}>
<h4 className="text-[0.75rem] opacity-50 ml-8 pl-8">
{open ? 'General' : ''}
</h4>
Expand All @@ -318,7 +308,7 @@ export const SidebarOrg = () => {
}`}
>
<Link
href={'#'}
href={'https://tally.so/r/wMNB8p'}
className={`hover:bg-white hover:bg-opacity-40 ${
open ? 'ml-8 pl-8 w-3/4 py-2' : 'p-2'
} mb-4 rounded-md flex items-center space-x-2`}
Expand Down

0 comments on commit 6052602

Please sign in to comment.