UI fixes
This commit is contained in:
parent
6193f0c311
commit
08afff0e89
@ -1,15 +1,18 @@
|
||||
import "mobx-react/batchingForReactDom";
|
||||
import { StoreProvider } from "client/contexts/storeContext";
|
||||
import theme from "client/UIKit/theme";
|
||||
import React from "react";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import { ThemeProvider } from "styled-components";
|
||||
import "./App.css";
|
||||
import Layout from "./Layout";
|
||||
import 'mobx-react/batchingForReactDom';
|
||||
import { StoreProvider } from 'client/contexts/storeContext';
|
||||
import theme from 'client/UIKit/theme';
|
||||
import React from 'react';
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import './App.css';
|
||||
import Layout from './Layout';
|
||||
import { ConfigProvider } from 'antd';
|
||||
import ruRu from 'antd/es/locale/ru_RU';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<ConfigProvider locale={ruRu}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<StoreProvider>
|
||||
<BrowserRouter>
|
||||
@ -17,6 +20,7 @@ function App() {
|
||||
</BrowserRouter>
|
||||
</StoreProvider>
|
||||
</ThemeProvider>
|
||||
</ConfigProvider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import { Box, Flex } from 'client/UIKit/grid';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import SectionsList from './list';
|
||||
import withTitle from 'client/hocs/withTitle';
|
||||
|
||||
const { TabPane } = Tabs;
|
||||
|
||||
@ -17,11 +18,11 @@ const Sections = props => (
|
||||
<Tabs type="line">
|
||||
{SectionsList.map(({ title, elements }, i) => (
|
||||
<TabPane tab={title} key={i}>
|
||||
<Flex>
|
||||
{elements.map(({ Component, props }, ie) => {
|
||||
<Flex alignItems="flex-end">
|
||||
{elements.map(({ title, Component, props }, ie) => {
|
||||
return (
|
||||
<InputWrapper key={ie}>
|
||||
<Component {...props} />
|
||||
{withTitle(title)(Component)(props)}
|
||||
</InputWrapper>
|
||||
);
|
||||
})}
|
||||
|
||||
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const TitleText = styled.div`
|
||||
font-size: 1.3rem;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user