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
|
let counter = 0
|
||||||
hashtags = hashtags.split('\n')
|
hashtags = hashtags.split('\n')
|
||||||
.map(tag => tag.trim())
|
.map(tag => tag.trim())
|
||||||
.map(tag => {
|
|
||||||
if (tag === '-') {
|
|
||||||
counter += 1
|
|
||||||
return '---' + counter
|
|
||||||
}
|
|
||||||
return tag
|
|
||||||
})
|
|
||||||
.filter(tag => tag.length > 0)
|
.filter(tag => tag.length > 0)
|
||||||
console.log('hashtags', hashtags)
|
console.log('hashtags', hashtags)
|
||||||
|
|
||||||
Promise.all(
|
Promise.all(
|
||||||
[
|
[
|
||||||
'',
|
'',
|
||||||
'---',
|
|
||||||
...hashtags
|
...hashtags
|
||||||
]
|
]
|
||||||
.map(async frame_filename => {
|
.map(async frame_filename => {
|
||||||
let src = frame_filename
|
let src = frame_filename
|
||||||
if (frame_filename !== '' && !frame_filename.startsWith('---')) {
|
if (frame_filename !== '') {
|
||||||
src = (await import(`./hashtags/${frame_filename}.png`)).default
|
src = (await import(`./hashtags/${frame_filename}.png`)).default
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
@ -65,9 +57,6 @@ function HashtagChooser({ onChange, getString }) {
|
||||||
frames.map(frame => {
|
frames.map(frame => {
|
||||||
const frame_src_path = frame.src
|
const frame_src_path = frame.src
|
||||||
const isChoosen = choosenFrameSRC === frame_src_path
|
const isChoosen = choosenFrameSRC === frame_src_path
|
||||||
if (frame_src_path.startsWith('---')) {
|
|
||||||
return <div key={frame_src_path} style={{height: '1vmin'}} />
|
|
||||||
}
|
|
||||||
return <button
|
return <button
|
||||||
key={frame.name}
|
key={frame.name}
|
||||||
data-src={frame_src_path}
|
data-src={frame_src_path}
|
||||||
|
|
|
@ -26,11 +26,10 @@ hashtags =
|
||||||
#JoinTheChange
|
#JoinTheChange
|
||||||
#VoltEuropa
|
#VoltEuropa
|
||||||
#Volt
|
#Volt
|
||||||
-
|
|
||||||
#DeineWahl
|
#DeineWahl
|
||||||
#JetztBistDuDran
|
#JetztBistDuDran
|
||||||
#Volt21
|
#Volt21
|
||||||
-
|
|
||||||
#paneuropäisch
|
#paneuropäisch
|
||||||
#pragmatisch
|
#pragmatisch
|
||||||
#progressiv
|
#progressiv
|
||||||
|
@ -41,5 +40,4 @@ hashtags =
|
||||||
#EuropeCares
|
#EuropeCares
|
||||||
#VoltForLGBTIAQ
|
#VoltForLGBTIAQ
|
||||||
#ValuesOverPower
|
#ValuesOverPower
|
||||||
-
|
|
||||||
#ZukunftMadeInEurope
|
#ZukunftMadeInEurope
|
||||||
|
|
|
@ -26,11 +26,11 @@ hashtags =
|
||||||
#JoinTheChange
|
#JoinTheChange
|
||||||
#VoltEuropa
|
#VoltEuropa
|
||||||
#Volt
|
#Volt
|
||||||
-
|
|
||||||
#RejoinEU
|
#RejoinEU
|
||||||
|
|
||||||
#Volt21
|
#Volt21
|
||||||
#IkStemVolt
|
#IkStemVolt
|
||||||
-
|
|
||||||
#progressiv
|
#progressiv
|
||||||
#democracy
|
#democracy
|
||||||
#Europa
|
#Europa
|
||||||
|
@ -39,7 +39,6 @@ hashtags =
|
||||||
#EuropeCares
|
#EuropeCares
|
||||||
#VoltForLGBTIAQ
|
#VoltForLGBTIAQ
|
||||||
#ValuesOverPower
|
#ValuesOverPower
|
||||||
-
|
|
||||||
#FutureMadeInEurope
|
#FutureMadeInEurope
|
||||||
|
|
||||||
not_in_use_hashtags =
|
not_in_use_hashtags =
|
||||||
|
|
Loading…
Reference in a new issue