From af6d0a5d2a9d5b287c5af499748733ae60dc1584 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Tue, 13 Apr 2021 23:17:09 -0400 Subject: [PATCH] Add setDarkMode prop --- src/components/AppView/AppView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/AppView/AppView.js b/src/components/AppView/AppView.js index 8536140..7b093a1 100644 --- a/src/components/AppView/AppView.js +++ b/src/components/AppView/AppView.js @@ -155,6 +155,9 @@ export default function AppView({ setDarkMode }){ ); }; -AppView.propTypes = {}; +AppView.propTypes = { + /** Callback to toggle dark mode. */ + "setDarkMode": PropTypes.func.isRequired +}; AppView.defaultProps = {}; \ No newline at end of file