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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"
>