Add unicode chars
just to make it look nicer ;)
This commit is contained in:
parent
d70e249aa2
commit
95c7374351
@ -14,47 +14,47 @@ const featherIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 51
|
|||||||
|
|
||||||
const semanticLabels = {
|
const semanticLabels = {
|
||||||
praise: {
|
praise: {
|
||||||
text: 'praise',
|
text: '🏆 praise',
|
||||||
icon: trophyIcon,
|
icon: trophyIcon,
|
||||||
blocking: false,
|
blocking: false,
|
||||||
},
|
},
|
||||||
nitpick: {
|
nitpick: {
|
||||||
text: 'nitpick',
|
text: '🔎 nitpick',
|
||||||
icon: searchIcon,
|
icon: searchIcon,
|
||||||
blocking: true,
|
blocking: true,
|
||||||
},
|
},
|
||||||
suggestion: {
|
suggestion: {
|
||||||
text: 'suggestion',
|
text: '⁉ suggestion',
|
||||||
icon: exclamationIcon,
|
icon: exclamationIcon,
|
||||||
blocking: true,
|
blocking: true,
|
||||||
},
|
},
|
||||||
issue: {
|
issue: {
|
||||||
text: 'issue',
|
text: '🪲 issue',
|
||||||
icon: bugIcon,
|
icon: bugIcon,
|
||||||
blocking: true,
|
blocking: true,
|
||||||
},
|
},
|
||||||
question: {
|
question: {
|
||||||
text: 'question',
|
text: '❓question',
|
||||||
icon: questionIcon,
|
icon: questionIcon,
|
||||||
blocking: true,
|
blocking: true,
|
||||||
},
|
},
|
||||||
thought: {
|
thought: {
|
||||||
text: 'thought',
|
text: '💬 thought',
|
||||||
icon: commentIcon,
|
icon: commentIcon,
|
||||||
blocking: false,
|
blocking: false,
|
||||||
},
|
},
|
||||||
chore: {
|
chore: {
|
||||||
text: 'chore',
|
text: '🏠 chore',
|
||||||
icon: homeIcon,
|
icon: homeIcon,
|
||||||
blocking: true,
|
blocking: true,
|
||||||
},
|
},
|
||||||
note: {
|
note: {
|
||||||
text: 'note',
|
text: '📝 note',
|
||||||
icon: stickyNoteIcon,
|
icon: stickyNoteIcon,
|
||||||
blocking: false,
|
blocking: false,
|
||||||
},
|
},
|
||||||
typo: {
|
typo: {
|
||||||
text: 'typo',
|
text: '🪶 typo',
|
||||||
icon: featherIcon,
|
icon: featherIcon,
|
||||||
blocking: false,
|
blocking: false,
|
||||||
},
|
},
|
||||||
@ -80,7 +80,7 @@ const semanticButtonClickHandler = (e, {textarea, label, blocking}) => {
|
|||||||
.replace('%text', semanticLabels[label].text)
|
.replace('%text', semanticLabels[label].text)
|
||||||
.replace('%decoration', decoration);
|
.replace('%decoration', decoration);
|
||||||
const cleanedValue = textarea.value.replace(
|
const cleanedValue = textarea.value.replace(
|
||||||
/\*\*\w+(\s\(non-blocking\))?:\*\*\s?/,
|
/\*\*.+(\s\(non-blocking\))?:\*\*\s?/,
|
||||||
'',
|
'',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user