extract syntax highlighting styles into a CSS module

This commit is contained in:
2022-01-13 09:04:02 -05:00
parent b51e8a38ce
commit 1a0541776e
10 changed files with 190 additions and 169 deletions
+2 -3
View File
@@ -38,10 +38,9 @@ const Loading = ({ width, boxes = 3, timing = 0.1 }: Props) => {
// width of each box correlates with number of boxes (with a little padding)
// each individual box's animation has a staggered start in corresponding order
divs.push(
<>
<div key={i} className={boxClassName} style={{ animationDelay: `${i * timing}s` }} />
<div key={i} className={boxClassName} style={{ animationDelay: `${i * timing}s` }}>
{boxStyles}
</>
</div>
);
}