2988da0981
Biggest changes forced by this: alt tags for all images, resulting in new strings added to messages.json, and a new i18n paramter/prop added in a plot of places. Another change of note is that there are two new tslint.json files under ts/test and ts/styleguide to relax our rules a bit there. This required a change to our package.json script, as manually specifying the config file there made it ignore our tslint.json files in subdirectories
30 lines
520 B
TypeScript
30 lines
520 B
TypeScript
/**
|
|
* @prettier
|
|
*/
|
|
import React from 'react';
|
|
|
|
import * as Colors from '../../styles/Colors';
|
|
|
|
interface Props {
|
|
label: string;
|
|
}
|
|
|
|
const styles = {
|
|
container: {
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
flexGrow: 1,
|
|
|
|
fontSize: 28,
|
|
color: Colors.TEXT_SECONDARY,
|
|
} as React.CSSProperties,
|
|
};
|
|
|
|
export class EmptyState extends React.Component<Props> {
|
|
public render() {
|
|
const { label } = this.props;
|
|
|
|
return <div style={styles.container}>{label}</div>;
|
|
}
|
|
}
|