Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
receptiryaki committed Apr 18, 2020
2 parents 88224fd + a35fef6 commit ceb8a08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/components/HomePage/Masthead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function Masthead() {
>
React Boilerplate
</A>{' '}
as{' '}
as a{' '}
<A
href="https://github.com/facebook/create-react-app"
target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion src/app/containers/GithubRepoForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function GithubRepoForm() {
))}
</List>
) : error ? (
<ErrorText>There is an error occurred!</ErrorText>
<ErrorText>Oops! An error has occurred</ErrorText>
) : null}
</Wrapper>
);
Expand Down
5 changes: 3 additions & 2 deletions src/styles/theme/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ThemeKeyType } from './types';

export const isSysyemDark = window.matchMedia('(prefers-color-scheme: dark)')
.matches;
export const isSysyemDark = window.matchMedia
? window.matchMedia('(prefers-color-scheme: dark)')?.matches
: undefined;

export function saveTheme(theme: ThemeKeyType) {
if (window.localStorage) {
Expand Down

0 comments on commit ceb8a08

Please sign in to comment.