mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-08-15 02:01:11 +02:00
Remove misguided comma-first style, add floating commas, and improve spacing and parentheses for single-param inline arrow functions.
46 lines
1.3 KiB
JavaScript
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>
|
|
);
|
|
}
|