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

* Refactor HookFilter to only support enabledEvents (and add a function to convert) * Convert connections to deprecate ignoreHooks * Update documentation * Split out EventHookCheckbox * Refactor frontend to support enableHooks only mode * drop old field name * changelog * Fix enabledHooks for widgets * Fixes across the board * Update test description * Cleanup * Fix HookFilter * Fixup checkboxes * Cleanup
19 lines
706 B
TypeScript
19 lines
706 B
TypeScript
import { 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 alt="GitHub avatar" src={config.identity.avatarUrl} />
|
|
</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; |