Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
openFontEditor = () => {
let link = "simple-en.html";
const locale = intl.options.currentLocale;
if (locale.includes('cn')) {
link = "simple-cn.html";
} else if (locale.includes('ko')) {
link = "simple.html";
}
const targetLink = 'http://www.fontmoa.com/editor/v1/' + link;
shell.openExternal(targetLink);
}
render() {
const currentLocale = intl.options.currentLocale ;
const locales = intl.options.locales;
const currentMessage = locales[currentLocale];
return (
<div>
<div>
<input placeholder="{intl.get('emojimanager.fontlist.search.inputText.placeholder')}/" type="search">
</div>
<div>
<div>
<div>{intl.get('emojimanager.fontlist.category.title')}</div>
{this.props.emojiKeys.map((emojiKey, index) => {
return this.createEmojiList(emojiKey, index, currentMessage)
})}
</div>
<div>
<div>{intl.get('emojimanager.fontlist.tag.title')}</div></div></div></div>
render() {
const currentLocale = intl.options.currentLocale ;
const locales = intl.options.locales;
const currentMessage = locales[currentLocale];
return (
<div>
<div>
<input placeholder="{intl.get('emojimanager.fontlist.search.inputText.placeholder')}/" type="search">
</div>
<div>
<div>
<div>{intl.get('emojimanager.fontlist.category.title')}</div>
{this.props.emojiKeys.map((emojiKey, index) => {
return this.createEmojiList(emojiKey, index, currentMessage)
})}
</div>
<div></div></div></div>