Skip to content

Commit

Permalink
fix: Fixed theme types error
Browse files Browse the repository at this point in the history
  • Loading branch information
myxvisual committed May 22, 2018
1 parent 906011c commit aa9e494
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/styles/darkTheme.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import getTheme from "./getTheme";
export default getTheme({ themeName: "dark" });
const darkTheme: ReactUWP.ThemeType = getTheme({ themeName: "dark" });
export default darkTheme;
2 changes: 1 addition & 1 deletion src/styles/getStripedBackground.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function getStripedBackground(size = 4, firstColor = "#000", secondColor = "hsla(0, 0%, 0%, 0.85)") {
export default function getStripedBackground(size = 4, firstColor = "#000", secondColor = "hsla(0, 0%, 0%, 0.85)"): React.CSSProperties {
return {
background: `linear-gradient(45deg, ${firstColor} 25%, ${secondColor} 0px, ${secondColor} 50%, ${firstColor} 0px, ${firstColor} 75%, ${secondColor} 0px) 0% 0% / ${size}px ${size}px ${firstColor}`
} as React.CSSProperties;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/lightTheme.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import getTheme from "./getTheme";

export default getTheme({ themeName: "dark" });
const lightTheme: ReactUWP.ThemeType = getTheme({ themeName: "light" });
export default lightTheme;

0 comments on commit aa9e494

Please sign in to comment.