Prettier support

This commit is contained in:
2021-03-10 21:14:32 -06:00
parent c51b527707
commit 0924490a6f
99 changed files with 5504 additions and 3979 deletions

View File

@@ -1,28 +1,25 @@
import React from 'react';
import './Text.css';
const Text = props => {
const Text = (props) => {
const styleList = [];
styleList.push('Text');
if (props.type) {
styleList.push('Text' + props.type);
}
let style = {...props.style};
let style = { ...props.style };
if (props.textAlign) {
style['textAlign'] = props.textAlign.toLowerCase();
}
const text = (
<div
className={styleList.join(' ')}
style={style}>{props.text}
</div>);
<div className={styleList.join(' ')} style={style}>
{props.text}
</div>
);
return props.noOwner ? text : (
<div className={'TextOwner'}>
{text}
</div>);
return props.noOwner ? text : <div className={'TextOwner'}>{text}</div>;
};
export default Text;