mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
31 lines
522 B
JavaScript
31 lines
522 B
JavaScript
|
|
// @flow
|
||
|
|
import React from "react";
|
||
|
|
import { translate } from "react-i18next";
|
||
|
|
import { Title, Loading, ErrorNotification } from "@scm-manager/ui-components";
|
||
|
|
|
||
|
|
type Props = {
|
||
|
|
loading: boolean,
|
||
|
|
error: Error,
|
||
|
|
|
||
|
|
// context objects
|
||
|
|
t: string => string
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
class AdminDetails extends React.Component<Props> {
|
||
|
|
|
||
|
|
render() {
|
||
|
|
const { t, loading } = this.props;
|
||
|
|
|
||
|
|
if (loading) {
|
||
|
|
return <Loading />;
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<>Nothing special.</>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default translate("admin")(AdminDetails);
|