Align RoomSummaryCard styles with Figma (#12793)

* Extract useIsVideoRoom hook

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Align RoomSummaryCard styles with Figma

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-08-01 13:00:40 +01:00 committed by GitHub
parent b6addb4118
commit a38a5161ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 304 additions and 273 deletions

View file

@ -271,7 +271,7 @@ describe("<RoomSummaryCard />", () => {
mocked(settingsHooks.useFeatureEnabled).mockImplementation((feature) => feature === "feature_pinning");
const { getByText } = getComponent();
expect(getByText("Pinned")).toBeInTheDocument();
expect(getByText("Pinned messages")).toBeInTheDocument();
});
});
@ -279,14 +279,14 @@ describe("<RoomSummaryCard />", () => {
it("renders poll history option", () => {
const { getByText } = getComponent();
expect(getByText("Poll history")).toBeInTheDocument();
expect(getByText("Polls")).toBeInTheDocument();
});
it("opens poll history dialog on button click", () => {
const permalinkCreator = new RoomPermalinkCreator(room);
const { getByText } = getComponent({ permalinkCreator });
fireEvent.click(getByText("Poll history"));
fireEvent.click(getByText("Polls"));
expect(Modal.createDialog).toHaveBeenCalledWith(PollHistoryDialog, {
room,