Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
connor authored and connor committed Dec 30, 2024
1 parent a7b5aef commit 26d3989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions boilerplate/frontend/react-multitenancy/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as ReactRouter from "react-router-dom";
import Dashboard from "./Dashboard";
import { PreBuiltUIList, SuperTokensConfig, ComponentWrapper } from "./config";
import Home from "./Home";
import Auth from "./Auth";

// Initialize SuperTokens - ideally in the global
SuperTokens.init(SuperTokensConfig);
Expand Down Expand Up @@ -35,6 +36,7 @@ function App() {
<Routes>
<Route path="/" element={<Home />} />
{/* This shows the login UI on "/auth" route */}
<Route path="/auth" element={<Auth />} />
{getSuperTokensRoutesForReactRouterDom(ReactRouter, PreBuiltUIList)}

{/* This protects the "/" route so that it shows
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/frontend/react-multitenancy/src/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const LoginWithSSOButton = ({
export const Auth = () => {
const [tenantId, setTenantId] = React.useState(localStorage.getItem("tenantId"));
const session = useSessionContext();
const [showTenantSelector, setShowTenantSelector] = React.useState(false);
const [showTenantSelector, setShowTenantSelector] = React.useState(true);
const navigate = useNavigate();

console.log("HELLOOO");
Expand Down

0 comments on commit 26d3989

Please sign in to comment.