Skip to content

Commit

Permalink
Merge pull request #998 from newrelic/tabatha/dark-mode-bug
Browse files Browse the repository at this point in the history
fix: Search input no longer sets darkMode to undefined
  • Loading branch information
tabathadelane authored May 22, 2023
2 parents acd2df6 + 77abd6c commit 849ec43
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@emotion/styled": "^11.3.0",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@newrelic/gatsby-theme-newrelic": "^6.19.1",
"@newrelic/gatsby-theme-newrelic": "^7.0.4",
"@splitsoftware/splitio-react": "^1.2.4",
"date-fns": "^2.17.0",
"feather-icons": "^4.28.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ exports[`ProjectSearchInput Renders correctly 1`] = `
>
<div
className="emotion-6"
href={false}
onClick={[Function]}
>
All Categories
Expand Down Expand Up @@ -291,6 +292,7 @@ exports[`ProjectSearchInput Renders correctly 1`] = `
>
<div
className="emotion-6"
href={false}
onClick={[Function]}
>
All Project Tags
Expand Down Expand Up @@ -324,6 +326,7 @@ exports[`ProjectSearchInput Renders correctly 1`] = `
>
<div
className="emotion-6"
href={false}
onClick={[Function]}
>
All Language Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/withDarkMode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import useDarkMode from 'use-dark-mode';
import { useDarkMode } from '@newrelic/gatsby-theme-newrelic';
import isLocalStorageAvailable from '../utils/isLocalStorageAvailable';

const withDarkMode = (ComponentToWrap) => (props) => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2647,10 +2647,10 @@
eslint-plugin-promise "^4.2.1"
eslint-plugin-react "^7.14.3"

"@newrelic/gatsby-theme-newrelic@^6.19.1":
version "6.19.2"
resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-6.19.2.tgz#14e07a23ecbf4ca65a0709895630066232f29e29"
integrity sha512-wZvZ28zic/OOkVJwGvA0I7u8lOqMgBju1KagSNN+5T7xATbpfoCeA5n8P2vI5l9G4skJZLiNY3W/CYKwyQWvzA==
"@newrelic/gatsby-theme-newrelic@^7.0.4":
version "7.0.4"
resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-7.0.4.tgz#771be9c145345e0257b2fd7431094a41b17261e7"
integrity sha512-SHiXc0u6Wn1YPDYQg874iJI0zhLyWCYUT0fku02RWkM1j7yAiP/oR0hRlkcJn6nrLuztNeZsQZ8q9fmAZHZARA==
dependencies:
"@wry/equality" "^0.4.0"
"@xstate/react" "^1.3.1"
Expand Down

0 comments on commit 849ec43

Please sign in to comment.