1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-06 10:22:45 +03:00

split SettingsSection out of SettingsTab, replace usage (#10735)

* split SettingsSection out of SettingsTab, replace usage

* correct copyright

* fix VoipRoomSettingsTab
This commit is contained in:
Kerry
2023-05-01 10:37:40 +12:00
committed by GitHub
parent 35376996b0
commit 58c942be45
9 changed files with 174 additions and 72 deletions

View File

@@ -22,7 +22,7 @@ import SettingsTab, { SettingsTabProps } from "../../../../../src/components/vie
describe("<SettingsTab />", () => {
const getComponent = (props: SettingsTabProps): ReactElement => <SettingsTab {...props} />;
it("renders tab", () => {
const { container } = render(getComponent({ heading: "Test Tab", children: <div>test</div> }));
const { container } = render(getComponent({ children: <div>test</div> }));
expect(container).toMatchSnapshot();
});

View File

@@ -5,11 +5,6 @@ exports[`<SettingsTab /> renders tab 1`] = `
<div
class="mx_SettingsTab"
>
<h2
class="mx_Heading_h2"
>
Test Tab
</h2>
<div
class="mx_SettingsTab_sections"
>