Skip to content

Commit bb98d53

Browse files
committed
feat: streamline imports in AppRouter and mount files, add Sentry to AuthContextOnboarding
1 parent 722887d commit bb98d53

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/AppRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HashRouter as Router, Navigate, Route, Routes } from 'react-router-dom';
1+
import { HashRouter as Router, Navigate, Route } from 'react-router-dom';
22
import ControlPlaneView from './views/ControlPlanes/ControlPlaneView.tsx';
33
import ProjectListView from './views/ProjectList';
44
import ControlPlaneListView from './views/ControlPlanes/ControlPlaneListView.tsx';

src/mount.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@ import { createRoot } from 'react-dom/client';
22
import { createApp } from './main.tsx';
33
import * as Sentry from '@sentry/react';
44
import React from 'react';
5-
import {
6-
Routes,
7-
Route,
8-
BrowserRouter,
9-
useLocation,
10-
useNavigationType,
11-
createRoutesFromChildren,
12-
matchRoutes,
13-
} from 'react-router-dom';
5+
import { Routes, useLocation, useNavigationType, createRoutesFromChildren, matchRoutes } from 'react-router-dom';
146

157
let sentryRoutes = Routes;
168
if (import.meta.env.VITE_SENTRY_DSN.length > 0) {

src/spaces/onboarding/auth/AuthContextOnboarding.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createContext, useState, useEffect, ReactNode, use } from 'react';
22
import { MeResponseSchema, User } from './auth.schemas';
33
import { AUTH_FLOW_SESSION_KEY } from '../../../common/auth/AuthCallbackHandler.tsx';
4+
import * as Sentry from '@sentry/react';
45

56
interface AuthContextOnboardingType {
67
isLoading: boolean;

0 commit comments

Comments
 (0)