mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00

* 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>
19 lines
711 B
TypeScript
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; |