refactor RepositoryForm.tsx to FC

This commit is contained in:
Eduard Heimbuch
2020-11-24 12:50:22 +01:00
parent 240069734d
commit ff2b4d8acd
9 changed files with 355 additions and 197 deletions

View File

@@ -78,6 +78,7 @@ class Main extends React.Component<Props> {
<Redirect exact strict from="/repos" to="/repos/" />
<ProtectedRoute exact path="/repos/" component={Overview} authenticated={authenticated} />
<ProtectedRoute exact path="/repos/create" component={Create} authenticated={authenticated} />
<ProtectedRoute exact path="/repos/import" component={Create} authenticated={authenticated} />
<ProtectedRoute exact path="/repos/:namespace" component={Overview} authenticated={authenticated} />
<ProtectedRoute exact path="/repos/:namespace/:page" component={Overview} authenticated={authenticated} />
<ProtectedRoute path="/repo/:namespace/:name" component={RepositoryRoot} authenticated={authenticated} />