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
470 B
TypeScript
19 lines
470 B
TypeScript
import style from "./ConnectionCard.module.scss";
|
|
|
|
interface IProps {
|
|
imageSrc: string;
|
|
serviceName: string;
|
|
description: string;
|
|
key: string;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function ConnectionCard(props: IProps) {
|
|
return <div className={style.card} onClick={props.onClick}>
|
|
<img alt="" src={props.imageSrc} />
|
|
<div>
|
|
<span>{props.serviceName}</span>
|
|
<p>{props.description}</p>
|
|
</div>
|
|
</div>;
|
|
}
|