Skip to content

Commit

Permalink
fix: issues in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wildergd committed Feb 3, 2021
1 parent a2cdf45 commit 603d2e4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/Application/rainbowLegacyStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,15 +1019,8 @@ const legacyStyles = `
font-size: 1rem; }
`;

const GlobalStyles = createGlobalStyle`
${legacyStyles}
`;

const RainbowLegacyStyles = () => {
if (isServer) {
return <GlobalStyles />;
}
return <style>{legacyStyles}</style>;
};
const RainbowLegacyStyles = isServer
? createGlobalStyle`${legacyStyles}`
: () => <style>{legacyStyles}</style>;

export default RainbowLegacyStyles;

0 comments on commit 603d2e4

Please sign in to comment.