wayBetter for X 1.0.2
This commit is contained in:
parent
7e2515aa42
commit
467aea2e28
212 changed files with 10208 additions and 2345 deletions
|
|
@ -6,6 +6,7 @@ import { Row, Section, Segmented, Toggle } from '../../../../waybetter/packages/
|
|||
import { useFlags } from '../../../../waybetter/packages/shell/src/panel/PluginFeatures.tsx';
|
||||
import type { SectionProps } from '../../../../waybetter/packages/shell/src/panel/site.ts';
|
||||
import { X_TABLE } from '../areas/table';
|
||||
import { syncWording } from '../shell/stringPacks';
|
||||
import { useT } from '../i18n/index.ts';
|
||||
|
||||
const LOGO = { brush: { logoBrush: true, replaceLogo: false }, bird: { logoBrush: false, replaceLogo: true }, x: { logoBrush: false, replaceLogo: false } } as const;
|
||||
|
|
@ -22,7 +23,7 @@ export function Branding({ notify }: SectionProps) {
|
|||
options={[{ value: 'brush', label: 'wayBetter for X' }, { value: 'bird', label: t('tweaks.logo.bird') }, { value: 'x', label: 'X' }]}/>
|
||||
</Row>
|
||||
<Row label={t('tweaks.wording.label')} hint={t('tweaks.wording.hint')} keywords="tweet retweet post repost">
|
||||
<Segmented label={t('tweaks.wording.label')} value={flags.twitterWording ? 'twitter' : 'x'} onChange={value => void choose({ twitterWording: value === 'twitter' })}
|
||||
<Segmented label={t('tweaks.wording.label')} value={flags.twitterWording ? 'twitter' : 'x'} onChange={value => void choose({ twitterWording: value === 'twitter' }).then(saved => saved && syncWording())}
|
||||
options={[{ value: 'twitter', label: 'Twitter' }, { value: 'x', label: 'X' }]}/>
|
||||
</Row>
|
||||
</Section>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue