ui fixes
This commit is contained in:
parent
5e0c90b0c6
commit
11ff4b7e94
@ -1,19 +1,16 @@
|
||||
import { Divider } from 'antd';
|
||||
import { renderGroups } from 'client/Containers/Calculation/lib/renderSections';
|
||||
import Background from 'client/Elements/Background';
|
||||
import Title from 'client/Elements/Title';
|
||||
import { Flex } from 'client/UIKit/grid';
|
||||
import { Flex, Box } from 'client/UIKit/grid';
|
||||
import React from 'react';
|
||||
import { resultInfo, calculationResults } from './resultsList';
|
||||
import { calculationResults, resultInfo } from './resultsList';
|
||||
|
||||
const Results = props => (
|
||||
<Background {...props}>
|
||||
<Box my="8px" />
|
||||
{renderGroups({ groups: resultInfo })}
|
||||
<Divider style={styles.divider} />
|
||||
<Flex flexDirection="column">
|
||||
<Flex justifyContent="center">
|
||||
<Title text="Результаты" />
|
||||
</Flex>
|
||||
{renderGroups({ groups: calculationResults })}
|
||||
</Flex>
|
||||
</Background>
|
||||
|
||||
@ -14,10 +14,10 @@ import {
|
||||
validateKpp,
|
||||
validatePhone,
|
||||
} from 'client/tools/validate';
|
||||
import { ISections } from 'core/types/Calculation/components';
|
||||
import { ISection } from 'core/types/Calculation/components';
|
||||
import { ElementType } from 'core/types/Calculation/Store/elements';
|
||||
|
||||
const sections: ISections[] = [
|
||||
const sections: ISection[] = [
|
||||
{
|
||||
title: 'Интерес/ЛС',
|
||||
groups: [
|
||||
|
||||
@ -47,7 +47,7 @@ export interface IGroup {
|
||||
blocks?: IBlock[];
|
||||
}
|
||||
|
||||
export interface ISections {
|
||||
export interface ISection {
|
||||
title?: string;
|
||||
groups?: IGroup[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user