Make the encryption card more configurable:

- Change the icon
- Can set the destructive props
This commit is contained in:
Florian Duros
2024-12-23 14:58:07 +01:00
parent 13913ba8b2
commit 0757faef6d
3 changed files with 24 additions and 8 deletions

View File

@@ -7,13 +7,14 @@
import React from "react";
import { render } from "jest-matrix-react";
import KeyIcon from "@vector-im/compound-design-tokens/assets/web/icons/key-solid";
import { EncryptionCard } from "../../../../../../src/components/views/settings/encryption/EncryptionCard";
describe("<EncryptionCard />", () => {
it("should render", () => {
const { asFragment } = render(
<EncryptionCard title="My title" description="My description">
<EncryptionCard Icon={KeyIcon} title="My title" description="My description">
Encryption card children
</EncryptionCard>,
);