This pull request refactors the data/GeneratorList to remove excessive data and simplify our states in GeneratorComponent. The following changes have been made:
The h1 property in the objects of the data has been removed, and the title property has been updated to be used as theh1 tag in line 41 of GeneratorComponent.js.
After the change, the Card.Text component's initial state is now conditionally rendered based on the dataLoaded and response states using a ternary operator.
description2 is now being used
{description2} instead of descriptoin.
The response1, response2, and response3 properties in the data objects have been removed, and new states have been set for the GeneratorComponent.js to display appropriate messages using the title prop.
These changes have been thoroughly tested, and everything works as expected.
More details about these changes are outlined in Redesign/Refactor: Simplify data passed into GeneratorComponent.js from GeneratorList.js.
This pull request refactors the
data/GeneratorList
to remove excessive data and simplify our states inGeneratorComponent
. The following changes have been made:h1
property in the objects of the data has been removed, and thetitle
property has been updated to be used as theh1
tag in line 41 ofGeneratorComponent.js
.Card.Text
component's initial state is now conditionally rendered based on thedataLoaded
and response states using a ternary operator.description2
is now being used{description2} instead of descriptoin.
response1
,response2
, andresponse3
properties in the data objects have been removed, and new states have been set for theGeneratorComponent.js
to display appropriate messages using thetitle
prop.These changes have been thoroughly tested, and everything works as expected.