hookshot/web/components/GitHubState.tsx
Christian Paul 7df772cda5
Made ESLint lint all TypeScript files and fix a few linter errors (#273)
* Remove unused import of preact/h

* Remove unused imports

* Create 273.misc

* Lint all TypeScript files

* Re-add preact/h import

* Fix a few ESLint errors

* Update 273.misc

* Readd eslint:recommended

* Update .eslintrc.js

Co-authored-by: Will Hunt <will@half-shot.uk>
2022-04-06 15:25:10 +01:00

19 lines
711 B
TypeScript

import { h, FunctionComponent } from 'preact';
import { BridgeRoomStateGitHub } from '../../src/Widgets/BridgeWidgetInterface';
import "./GitHubState.css";
const GitHubState: FunctionComponent<{config: BridgeRoomStateGitHub}> = ({ config }) => {
return <div class="container login-card">
<div class="row">
<div class="col-sm-2">
<img src={config.identity.avatarUrl} title="GitHub avatar" />
</div>
<div class="col-sm-9">
Logged in as <span>{config.identity.name}</span>
<p>Notifications { config.notifications ? 'Enabled' : 'Disabled' }</p>
</div>
</div>
</div>
}
export default GitHubState;