Skip to content

Commit

Permalink
Add back navigation on org settings page.
Browse files Browse the repository at this point in the history
  • Loading branch information
JayNakrani committed Nov 29, 2023
1 parent ab47f76 commit 0d4f751
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/[orgSlug]/settings/organization-settings-page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
"use client";

import { Tabs, TabsRef } from "flowbite-react";
import { HiCog, HiChip } from "react-icons/hi";
import { HiCog, HiChip, HiArrowLeft } from "react-icons/hi";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import { tw } from "twind";
import Link from "next/link";

import { PageTitle } from "lib/fe/components/page-title";
import OrgGeneralSettings from "lib/fe/components/org-settings/general";
import { FE } from "lib/fe/route-utils";
import OrgAISettings from "lib/fe/components/org-settings/ai";
import AppsLoggedInLayout from "lib/fe/components/apps-logged-in-layout";
import { FrontendRoutes } from "lib/fe/routes";

const TAB_SEARCH_PARAM_NAME = "tab";

Expand Down Expand Up @@ -41,7 +43,12 @@ export function OrganizationSettingsPage({
}}
>
<div className={tw("p-8")}>
<PageTitle title="Organization settings" />
<div className={tw("flex flex-row items-center")}>
<Link href={FrontendRoutes.getOrgHomeRoute(params.orgSlug)} className={tw("mr-4")}>
<HiArrowLeft className={tw("h-6 w-6")}/>
</Link>
<PageTitle title="Organization settings" />
</div>

<div className={tw("mt-6 overflow-x-auto max-w-4xl")}>
<Tabs.Group
Expand Down

0 comments on commit 0d4f751

Please sign in to comment.