Closed carolinepaulic closed 3 years ago
This is a subtask of https://github.com/allenai/scholar/issues/28926 and a continuation of the state management work from https://github.com/allenai/scholar/issues/28332.
I updated the SimpleZoomControl component to use the new context vars over props to reduce redundancy.
SimpleZoomControl
This includes @pauls-ai2 suggestion of splitting handleZoom into handleZoomIn and handleZoomOut
handleZoom
handleZoomIn
handleZoomOut
Description
This is a subtask of https://github.com/allenai/scholar/issues/28926 and a continuation of the state management work from https://github.com/allenai/scholar/issues/28332.
I updated the
SimpleZoomControl
component to use the new context vars over props to reduce redundancy.Reviewer Instructions
This includes @pauls-ai2 suggestion of splitting
handleZoom
intohandleZoomIn
andhandleZoomOut
Testing Plan