Created
October 23, 2023 12:56
-
-
Save llirikkcoder/9f0203a97568a1e4bc274849097cec1b to your computer and use it in GitHub Desktop.
Как поменять цвет кнопки с T из @locus/translate-react ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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