mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
chore(electron): add community link for meeting feature (#11494)
fix AF-2471 
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
import { useAsyncCallback } from '@affine/core/components/hooks/affine-async-hooks';
|
||||
import { MeetingSettingsService } from '@affine/core/modules/media/services/meeting-settings';
|
||||
import type { MeetingSettingsSchema } from '@affine/electron/main/shared-state-schema';
|
||||
import { useI18n } from '@affine/i18n';
|
||||
import { Trans, useI18n } from '@affine/i18n';
|
||||
import track from '@affine/track';
|
||||
import {
|
||||
ArrowRightSmallIcon,
|
||||
@@ -159,7 +159,21 @@ export const MeetingsSettings = () => {
|
||||
|
||||
<SettingRow
|
||||
name={t['com.affine.settings.meetings.enable.title']()}
|
||||
desc={t['com.affine.settings.meetings.enable.description']()}
|
||||
desc={
|
||||
<Trans
|
||||
i18nKey="com.affine.settings.meetings.enable.description"
|
||||
components={{
|
||||
1: (
|
||||
<a
|
||||
className={styles.link}
|
||||
href="https://discord.com/channels/959027316334407691/1358384103925350542"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
/>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<Switch
|
||||
checked={settings.enabled}
|
||||
|
||||
@@ -16,3 +16,7 @@ export const permissionSetting = style({
|
||||
export const noPermissionIcon = style({
|
||||
color: cssVarV2('button/error'),
|
||||
});
|
||||
|
||||
export const link = style({
|
||||
color: cssVarV2('text/link'),
|
||||
});
|
||||
|
||||
@@ -255,6 +255,9 @@ export const AFFINE_FLAGS = {
|
||||
description:
|
||||
'com.affine.settings.workspace.experimental-features.enable-meetings.description',
|
||||
configurable: !isMobile && environment.isMacOs && BUILD_CONFIG.isElectron,
|
||||
feedbackType: 'discord',
|
||||
feedbackLink:
|
||||
'https://discord.com/channels/959027316334407691/1358384103925350542',
|
||||
defaultState: false,
|
||||
},
|
||||
} satisfies { [key in string]: FlagInfo };
|
||||
|
||||
Reference in New Issue
Block a user