Skip to content

Instantly share code, notes, and snippets.

@llirikkcoder
Created October 23, 2023 12:56
Show Gist options
  • Save llirikkcoder/9f0203a97568a1e4bc274849097cec1b to your computer and use it in GitHub Desktop.
Save llirikkcoder/9f0203a97568a1e4bc274849097cec1b to your computer and use it in GitHub Desktop.
Как поменять цвет кнопки с T из @locus/translate-react ?
import { Button } from 'antd';
import { T } from '@locus/translate-react';
<Button
icon={<Icon name='number-cont' />}
onClick={() => {
removeAllFieldsExceptReward(fields);
fields.push({
type: Reward.QuestRewardTypeText,
});
change('quest.questType', 'text');
form.mutators.remove('quest.codeWords');
form.mutators.remove('quest.pointers');
form.mutators.remove('quest.file3D');
setButtonFocus({ ...allButtonFocusOff, text: true });
localStorage.setItem(
'buttonFocus',
JSON.stringify({ ...allButtonFocusOff, text: true })
);
setNextBlocked(false);
}}
className={buttonFocus.text ? classnames(styles.focusedButton, styles.buttonTextColor) : ''}
// style={{ color: 'red' }}
>
<span className={styles.buttonTextColor} >
{/* <T k='create-quest.button.text' /> */}
Hello
</span>
</Button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment