1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2025-01-02 21:12:37 +00:00

removed hashtag line break stuff

This commit is contained in:
thomasrosen 2021-04-21 02:40:33 +02:00
parent bf1c886f3a
commit c0962a5459
3 changed files with 4 additions and 18 deletions

View file

@ -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 <div key={frame_src_path} style={{height: '1vmin'}} />
}
return <button
key={frame.name}
data-src={frame_src_path}

View file

@ -26,11 +26,10 @@ hashtags =
#JoinTheChange
#VoltEuropa
#Volt
-
#DeineWahl
#JetztBistDuDran
#Volt21
-
#paneuropäisch
#pragmatisch
#progressiv
@ -41,5 +40,4 @@ hashtags =
#EuropeCares
#VoltForLGBTIAQ
#ValuesOverPower
-
#ZukunftMadeInEurope

View file

@ -26,11 +26,11 @@ hashtags =
#JoinTheChange
#VoltEuropa
#Volt
-
#RejoinEU
#Volt21
#IkStemVolt
-
#progressiv
#democracy
#Europa
@ -39,7 +39,6 @@ hashtags =
#EuropeCares
#VoltForLGBTIAQ
#ValuesOverPower
-
#FutureMadeInEurope
not_in_use_hashtags =