1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-08-15 02:01:11 +02:00
Lexiconga/src/components/MainDisplay.jsx
Robbie Antenesse a443fe4c3f Fix code style
Remove misguided comma-first style, add floating commas, and improve
spacing and parentheses for single-param inline arrow functions.
2017-07-25 22:11:33 -06:00

46 lines
1.3 KiB
JavaScript

import Inferno from 'inferno';
import { LeftColumn } from './structure/LeftColumn';
import { RightColumn } from './structure/RightColumn';
import { WordForm } from './management/WordForm';
import { DictionaryDetails } from './display/DictionaryDetails';
import { WordsList } from './display/WordsList';
export const MainDisplay = ({ dictionaryInfo, wordsToDisplay, updateDisplay, lastRender }) => {
return (
<section className='section'>
<div className='container'>
<div className='columns'>
<LeftColumn>
<WordForm
updateDisplay={ () => updateDisplay() }
partsOfSpeech={ dictionaryInfo.partsOfSpeech }
/>
</LeftColumn>
<RightColumn>
<DictionaryDetails
name={ dictionaryInfo.name }
specification={ dictionaryInfo.specification }
description={ dictionaryInfo.description }
details={{
custom: [
{
name: 'Test Tab',
}
]
}}
/>
<WordsList
lastRender={ lastRender }
words={ wordsToDisplay } />
</RightColumn>
</div>
</div>
</section>
);
}