Template string can be replaced with regular string literal
75 radius="md"
76 fullWidth
77 >
78 {t(`item.create.addToBoard`)}79 </Button>
80 </Stack>
81 </Card>
Template string can be replaced with regular string literal
52 <PasswordInput
53 {...props}
54 label={props.label ?? t(`integration.secrets.kind.${kind}.label`)}
55 description={t(`integration.secrets.secureNotice`)}56 w="100%"
57 leftSection={<Icon size={20} stroke={1.5} />}
58 />
Description
Template literals are useful when you need:
Strings that have unescaped double quotes and single quotes.
Strings that need line breaks in them.
If neither of these three conditions is met, you can replace the template expression with a regular string literal.
Bad Practice
const dialogue = `"Journey before destination", said Dalinar.`
const dialogue2 = `What is a 'Kwisatz Haderach'?`
Recommended
const dialogue = '"Journey before destination", said Dalinar.'
const dialogue2 = "What is a 'Kwisatz Haderach'?"
const dialogue3 = `"${getLine()}", said ${getChararcter()}`