hookshot/web/components/GitHubState.tsx
Will Hunt 1e8a112a28
Drop ignoreHooks configuration. (#592)
* 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
2023-01-10 17:08:50 +00:00

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;