mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-17 04:47:02 +00:00
Fix react errors in settings tab (#3314)
* Fix react errors in settings tab * review
This commit is contained in:
@@ -57,7 +57,7 @@ export const FeedbackSettingsTab: FC<Props> = ({ roomId }) => {
|
||||
|
||||
const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics();
|
||||
const optInDescription = (
|
||||
<Text size="sm">
|
||||
<Text size="sm" as="span">
|
||||
<Trans i18nKey="settings.opt_in_description">
|
||||
<AnalyticsNotice />
|
||||
<br />
|
||||
|
||||
@@ -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" }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user