* fix: restructure code and show content based on permission - Restructure Invite user forms into separate App and Org forms - Show Modal content based on permissions. * update: Permission handling. * fix: Modify permission handling * fix: check manage permission for manage users btn and show copy to clipboard always. * Dummy commit to run the tests * Fix: Test cases * Another dummy commit to run the tests Co-authored-by: Trisha Anand <trisha@appsmith.com>
26 lines
776 B
TypeScript
26 lines
776 B
TypeScript
import React from "react";
|
|
import { Switch, useRouteMatch, useLocation } from "react-router-dom";
|
|
import PageWrapper from "pages/common/PageWrapper";
|
|
import Settings from "./settings";
|
|
import DefaultOrgPage from "./defaultOrgPage";
|
|
import AppRoute from "pages/common/AppRoute";
|
|
export const Organization = () => {
|
|
const { path } = useRouteMatch();
|
|
const location = useLocation();
|
|
return (
|
|
<PageWrapper displayName="Organization Settings">
|
|
<Switch location={location}>
|
|
<AppRoute
|
|
exact
|
|
path={`${path}/:orgId/settings`}
|
|
component={Settings}
|
|
name={"Settings"}
|
|
/>
|
|
<AppRoute component={DefaultOrgPage} name={"DefaultOrgPage"} />
|
|
</Switch>
|
|
</PageWrapper>
|
|
);
|
|
};
|
|
|
|
export default Organization;
|