kafka-ui/kafka-ui-react-app/src/components/Schemas/Schemas.tsx
Alexander Krivonosov caec4eb170
Schema registry views (#317)
* Add schema type select to the form

* Implement adding new version of a schema

* Fix some issues & Increase test coverage

* Add more tests

* Add compatibility level update

* Abstract updating schema into a separate thunk & test it

* Remove warnings and skipped test

* Update failed tests

* Update failing tests

* Update markup

* Make the JSONEditor a part of the form

* Fix linting problem

* Fix errors
2021-04-22 16:26:02 +03:00

39 lines
934 B
TypeScript

import React from 'react';
import { Switch, Route } from 'react-router-dom';
import {
clusterSchemaNewPath,
clusterSchemaPath,
clusterSchemasPath,
} from 'lib/paths';
import ListContainer from './List/ListContainer';
import DetailsContainer from './Details/DetailsContainer';
import NewContainer from './New/NewContainer';
import EditContainer from './Edit/EditContainer';
const Schemas: React.FC = () => (
<Switch>
<Route
exact
path={clusterSchemasPath(':clusterName')}
component={ListContainer}
/>
<Route
exact
path={clusterSchemaNewPath(':clusterName')}
component={NewContainer}
/>
<Route
exact
path={clusterSchemaPath(':clusterName', ':subject')}
component={DetailsContainer}
/>
<Route
exact
path="/ui/clusters/:clusterName/schemas/:subject/edit"
component={EditContainer}
/>
</Switch>
);
export default Schemas;