Skip to content

Commit

Permalink
Make variables more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-nu committed Nov 15, 2024
1 parent 1cc4855 commit 3dc36d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
}

.text-green {
color: #2c9835;
color: #1d8525;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const lineRenderers: Record<RendererType, LineRenderer> = {
<span className={styles['text-gray']}>function</span>
<span className={styles['text-white']}> task:</span>
<span className={styles['text-yellow']}>{name}</span>
<span className={styles['text-gray']}>{' { ##'}</span>
<span className={styles['text-gray']}>{' {'}</span>
<span className={styles['text-green']}>{' ##'}</span>
<span className={styles['text-white']}>{rest}</span>
</div>
);
Expand Down Expand Up @@ -77,9 +78,9 @@ export const lineRenderers: Record<RendererType, LineRenderer> = {
const [varName, ...rest] = line.split('=');
return (
<div key={i} className={styles.line}>
<span className={styles['text-purple']}>{varName}</span>
<span className={styles['text-white']}>=</span>
<span className={styles['text-yellow-light']}>{rest.join('=')}</span>
<span className={styles['text-blue']}>{varName}</span>
<span className={styles['text-gray']}>=</span>
<span className={styles['text-white']}>{rest.join('=')}</span>
</div>
);
},
Expand Down

0 comments on commit 3dc36d6

Please sign in to comment.