From c0962a5459dd27aad06a41f98ba56642443d912f Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Wed, 21 Apr 2021 02:40:33 +0200 Subject: [PATCH] removed hashtag line break stuff --- src/HashtagChooser.js | 13 +------------ src/locales/de.ftl | 4 +--- src/locales/en.ftl | 5 ++--- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/HashtagChooser.js b/src/HashtagChooser.js index 82ac353..13e80f9 100644 --- a/src/HashtagChooser.js +++ b/src/HashtagChooser.js @@ -16,25 +16,17 @@ function HashtagChooser({ onChange, getString }) { let counter = 0 hashtags = hashtags.split('\n') .map(tag => tag.trim()) - .map(tag => { - if (tag === '-') { - counter += 1 - return '---' + counter - } - return tag - }) .filter(tag => tag.length > 0) console.log('hashtags', hashtags) Promise.all( [ '', - '---', ...hashtags ] .map(async frame_filename => { let src = frame_filename - if (frame_filename !== '' && !frame_filename.startsWith('---')) { + if (frame_filename !== '') { src = (await import(`./hashtags/${frame_filename}.png`)).default } return { @@ -65,9 +57,6 @@ function HashtagChooser({ onChange, getString }) { frames.map(frame => { const frame_src_path = frame.src const isChoosen = choosenFrameSRC === frame_src_path - if (frame_src_path.startsWith('---')) { - return
- } return