Merged PR 170: Add new eslint rules
- naming-convention - prefer-arrow-callback - func-style - import/no-default-export
This commit is contained in:
parent
3f58c5ba5e
commit
ad126c6c28
65 changed files with 781 additions and 784 deletions
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { ISymbolModel } from '../../Interfaces/ISymbolModel';
|
||||
import SymbolForm from './SymbolForm';
|
||||
import { SymbolForm } from './SymbolForm';
|
||||
|
||||
interface ISymbolPropertiesProps {
|
||||
symbol?: ISymbolModel
|
||||
|
@ -8,7 +8,7 @@ interface ISymbolPropertiesProps {
|
|||
onChange: (key: string, value: string | number | boolean) => void
|
||||
}
|
||||
|
||||
export const SymbolProperties: React.FC<ISymbolPropertiesProps> = (props: ISymbolPropertiesProps) => {
|
||||
export function SymbolProperties(props: ISymbolPropertiesProps): JSX.Element {
|
||||
if (props.symbol === undefined) {
|
||||
return <div></div>;
|
||||
}
|
||||
|
@ -18,8 +18,7 @@ export const SymbolProperties: React.FC<ISymbolPropertiesProps> = (props: ISymbo
|
|||
<SymbolForm
|
||||
symbol={props.symbol}
|
||||
symbols={props.symbols}
|
||||
onChange={props.onChange}
|
||||
/>
|
||||
onChange={props.onChange} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue