* feat: add Trans component * Add comments * tweak * Move brave to trans component * fix test and tweaks * remove any * fix * fix * comment * replace render function type * Use tags for Trans * Fix a typo Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com> * Cleanup, add comments, add support for kebab case * tweaks --------- Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com> Co-authored-by: dwelle <luzar.david@gmail.com>
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import Trans from "./Trans";
|
|
|
|
const BraveMeasureTextError = () => {
|
|
return (
|
|
<div data-testid="brave-measure-text-error">
|
|
<p>
|
|
<Trans
|
|
i18nKey="errors.brave_measure_text_error.line1"
|
|
bold={(el) => <span style={{ fontWeight: 600 }}>{el}</span>}
|
|
/>
|
|
</p>
|
|
<p>
|
|
<Trans
|
|
i18nKey="errors.brave_measure_text_error.line2"
|
|
bold={(el) => <span style={{ fontWeight: 600 }}>{el}</span>}
|
|
/>
|
|
</p>
|
|
<p>
|
|
<Trans
|
|
i18nKey="errors.brave_measure_text_error.line3"
|
|
link={(el) => (
|
|
<a href="http://docs.excalidraw.com/docs/@excalidraw/excalidraw/faq#turning-off-aggresive-block-fingerprinting-in-brave-browser">
|
|
{el}
|
|
</a>
|
|
)}
|
|
/>
|
|
</p>
|
|
<p>
|
|
<Trans
|
|
i18nKey="errors.brave_measure_text_error.line4"
|
|
issueLink={(el) => (
|
|
<a href="https://github.com/excalidraw/excalidraw/issues/new">
|
|
{el}
|
|
</a>
|
|
)}
|
|
discordLink={(el) => <a href="https://discord.gg/UexuTaE">{el}.</a>}
|
|
/>
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default BraveMeasureTextError;
|