github.com/argoproj/argo-cd@v1.8.7/ui/src/app/applications/components/applications-container.tsx (about)

     1  import * as React from 'react';
     2  import {Route, RouteComponentProps, Switch} from 'react-router';
     3  import {ApplicationDetails} from './application-details/application-details';
     4  import {ApplicationsList} from './applications-list/applications-list';
     5  
     6  export const ApplicationsContainer = (props: RouteComponentProps<any>) => (
     7      <Switch>
     8          <Route exact={true} path={`${props.match.path}`} component={ApplicationsList} />
     9          <Route exact={true} path={`${props.match.path}/:name`} component={ApplicationDetails} />
    10      </Switch>
    11  );