remove and cleanup unused code (#4074)
This commit is contained in:
@@ -44,7 +44,6 @@ import { COST_TRACKING_ENABLED } from './updates';
|
||||
|
||||
import { type SessionDetails } from './sessions';
|
||||
import ExtensionsView, { ExtensionsViewOptions } from './components/extensions/ExtensionsView';
|
||||
// import ProjectsContainer from './components/projects/ProjectsContainer';
|
||||
import { Recipe } from './recipe';
|
||||
import RecipesView from './components/RecipesView';
|
||||
import RecipeEditor from './components/RecipeEditor';
|
||||
@@ -67,7 +66,6 @@ export type View =
|
||||
| 'recipeEditor'
|
||||
| 'recipes'
|
||||
| 'permission';
|
||||
// | 'projects';
|
||||
|
||||
export type ViewOptions = {
|
||||
// Settings view options
|
||||
@@ -651,57 +649,6 @@ const ExtensionsRoute = () => {
|
||||
);
|
||||
};
|
||||
|
||||
// const ProjectsRoute = () => {
|
||||
// const navigate = useNavigate();
|
||||
//
|
||||
// const setView = (view: View, viewOptions?: ViewOptions) => {
|
||||
// // Convert view to route navigation
|
||||
// switch (view) {
|
||||
// case 'chat':
|
||||
// navigate('/');
|
||||
// break;
|
||||
// case 'pair':
|
||||
// navigate('/pair', { state: viewOptions });
|
||||
// break;
|
||||
// case 'settings':
|
||||
// navigate('/settings', { state: viewOptions });
|
||||
// break;
|
||||
// case 'sessions':
|
||||
// navigate('/sessions');
|
||||
// break;
|
||||
// case 'schedules':
|
||||
// navigate('/schedules');
|
||||
// break;
|
||||
// case 'recipes':
|
||||
// navigate('/recipes');
|
||||
// break;
|
||||
// case 'permission':
|
||||
// navigate('/permission', { state: viewOptions });
|
||||
// break;
|
||||
// case 'ConfigureProviders':
|
||||
// navigate('/configure-providers');
|
||||
// break;
|
||||
// case 'sharedSession':
|
||||
// navigate('/shared-session', { state: viewOptions });
|
||||
// break;
|
||||
// case 'recipeEditor':
|
||||
// navigate('/recipe-editor', { state: viewOptions });
|
||||
// break;
|
||||
// case 'welcome':
|
||||
// navigate('/welcome');
|
||||
// break;
|
||||
// default:
|
||||
// navigate('/');
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// return (
|
||||
// <React.Suspense fallback={<div>Loading projects...</div>}>
|
||||
// <ProjectsContainer setView={setView} />
|
||||
// </React.Suspense>
|
||||
// );
|
||||
// };
|
||||
|
||||
export default function App() {
|
||||
const [fatalError, setFatalError] = useState<string | null>(null);
|
||||
const [modalVisible, setModalVisible] = useState(false);
|
||||
@@ -1539,16 +1486,6 @@ export default function App() {
|
||||
</ProviderGuard>
|
||||
}
|
||||
/>
|
||||
{/*<Route*/}
|
||||
{/* path="projects"*/}
|
||||
{/* element={*/}
|
||||
{/* <ProviderGuard>*/}
|
||||
{/* <ChatProvider chat={chat} setChat={setChat}>*/}
|
||||
{/* <ProjectsRoute />*/}
|
||||
{/* </ChatProvider>*/}
|
||||
{/* </ProviderGuard> */}
|
||||
{/* }*/}
|
||||
{/*/>*/}
|
||||
</Route>
|
||||
</Routes>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user