Fix react errors in settings tab

This commit is contained in:
Timo
2025-06-04 12:27:04 +02:00
parent 64e27152c6
commit 6940cb1a96
2 changed files with 8 additions and 8 deletions

View File

@@ -57,14 +57,12 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics();
const optInDescription = (
<Text size="sm">
<Trans i18nKey="settings.opt_in_description">
<AnalyticsNotice />
<br />
You may withdraw consent by unchecking this box. If you are currently in
a call, this setting will take effect at the end of the call.
</Trans>
</Text>
<Trans i18nKey="settings.opt_in_description">
<AnalyticsNotice />
<br />
You may withdraw consent by unchecking this box. If you are currently in a
call, this setting will take effect at the end of the call.
</Trans>
);
// in the embedded package the widget host is responsible for analytics consent

View File

@@ -36,6 +36,7 @@ export function TabContainer<K extends Key>({
<NavBar role="tablist" aria-label={label} className={styles.tabList}>
{tabs.map(({ key, name }) => (
<NavItem
key={key}
aria-controls={`${idPrefix}[${key}]`}
onClick={() => onTabChange(key)}
active={key === tab}
@@ -46,6 +47,7 @@ export function TabContainer<K extends Key>({
</NavBar>
{tabs.map(({ key, content }) => (
<div
key={key}
id={`${idPrefix}[${key}]`}
style={{ display: key === tab ? undefined : "none" }}
>