Skip to content

Commit

Permalink
Better semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jul 14, 2023
1 parent 4aca5b9 commit dc09c6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/next/appDir.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function NextAppDirEmotionCacheProvider(
let styles = "";
let dataEmotionAttribute = cache.key;

const global: {
const globals: {
name: string;
style: string;
}[] = [];
Expand All @@ -69,7 +69,7 @@ export function NextAppDirEmotionCacheProvider(
}

if (isGlobal) {
global.push({ name, style });
globals.push({ name, style });
} else {
styles += style;
dataEmotionAttribute += ` ${name}`;
Expand All @@ -78,7 +78,7 @@ export function NextAppDirEmotionCacheProvider(

return (
<>
{global.map(({ name, style }) => (
{globals.map(({ name, style }) => (
<style
key={name}
data-emotion={`${cache.key}-global ${name}`}
Expand Down

0 comments on commit dc09c6f

Please sign in to comment.