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

* Update dependencies * Node 22 is now the new minimum version. * changelog. * Begin porting eslint to new config format. * Make linter happy. * Update reqwest to fix SSL issue? * Fix test types * quick check on ubuntu LTS 24.04 * Change cache key * update rust action * revert mocha due to esminess * Remove the only usage of pqueue * Use babel for TS transformations to get around ESM import bug. * Dependency bundle upgrade * Drop babel, not actually used. * lint * lint * update default config (mostly sections moving around)
19 lines
722 B
TypeScript
19 lines
722 B
TypeScript
import { FunctionComponent } from 'preact';
|
|
import { BridgeRoomStateGitHub } from '../../src/Widgets/BridgeWidgetInterface';
|
|
import "./GitHubState.css";
|
|
|
|
const GitHubState: FunctionComponent<{config: BridgeRoomStateGitHub}> = ({ config }) => {
|
|
return <div className="container login-card">
|
|
<div className="row">
|
|
<div className="col-sm-2">
|
|
<img alt="GitHub avatar" src={config.identity.avatarUrl} />
|
|
</div>
|
|
<div className="col-sm-9">
|
|
Logged in as <span>{config.identity.name}</span>
|
|
<p>Notifications { config.notifications ? 'Enabled' : 'Disabled' }</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
export default GitHubState; |