NYPL / staff-picks

1 stars 3 forks source link

Updated props types. #222

Closed ktp242 closed 6 years ago

ktp242 commented 6 years ago

This PR fixes the warning at the browser's console we will see if we select a filter button for the first time. The warning indicates an incorrect props type. Here is the warning.

Warning: Failed prop type: Invalid prop `selectedFilters[0]` of type `string` supplied to `Sidebar`, expected `object`.
    in Sidebar (created by Main)
    in Main (created by RouterContext)
    in div (created by App)
    in main (created by App)
    in div (created by App)
    in App (created by RouterContext)
    in RouterContext (created by Router)
    in Router