This commit is contained in:
2020-08-19 22:55:44 +02:00
parent 312c8754bc
commit b84aa3db45
18 changed files with 1184 additions and 146 deletions

37
src/screens/Debug.tsx Normal file
View File

@@ -0,0 +1,37 @@
import React, { useMemo } from 'react';
import {
Table,
} from 'antd';
import config from '../config';
const columns = [{
title: 'Name',
dataIndex: 'name',
key: 'name',
}, {
title: 'Value',
dataIndex: 'value',
key: 'value',
}];
const Debug: React.FC = () => {
const data = useMemo(() => {
const vals = {
'Repository': config.repo,
'User': config.user,
'Is Production': config.isProd,
};
return Object.entries(vals).map(([name, value]) => ({
key: name,
name,
value: value.toString(),
}));
}, []);
return (
<Table dataSource={data} columns={columns} />
);
};
export default Debug;