mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-05-09 01:07:59 +00:00
20a0283380
* prettier * linter * add prettier, and format the code * make the travis pass Signed-off-by: Daniel Maricic <daniel@woss.io> * travis to make a build Signed-off-by: Daniel Maricic <daniel@woss.io> * tslint and prettier + travis Signed-off-by: Daniel Maricic <daniel@woss.io> * useless setting, we use spaces Signed-off-by: Daniel Maricic <daniel@woss.io> * backend tests added to the travis Signed-off-by: Daniel Maricic <daniel@woss.io>
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
import * as React from 'react';
|
|
import './Tile.css';
|
|
import { Icon } from './Icon';
|
|
|
|
export namespace Tile {
|
|
export interface Props {
|
|
title: string;
|
|
icon: string;
|
|
children?: React.ReactNode;
|
|
}
|
|
}
|
|
|
|
export function Tile(props: Tile.Props) {
|
|
return (
|
|
<div className="Tile">
|
|
<Icon src={props.icon} alt={props.title} />
|
|
<span className="Tile-label">{props.title}</span>
|
|
<span className="Tile-content">{props.children}</span>
|
|
</div>
|
|
);
|
|
}
|