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:
parent
bf1c886f3a
commit
c0962a5459
3 changed files with 4 additions and 18 deletions
|
@ -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}
|
||||
|
|
|
@ -26,11 +26,10 @@ hashtags =
|
|||
#JoinTheChange
|
||||
#VoltEuropa
|
||||
#Volt
|
||||
-
|
||||
#DeineWahl
|
||||
#JetztBistDuDran
|
||||
#Volt21
|
||||
-
|
||||
|
||||
#paneuropäisch
|
||||
#pragmatisch
|
||||
#progressiv
|
||||
|
@ -41,5 +40,4 @@ hashtags =
|
|||
#EuropeCares
|
||||
#VoltForLGBTIAQ
|
||||
#ValuesOverPower
|
||||
-
|
||||
#ZukunftMadeInEurope
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue