pets-oss / pets-front

Pets Information System Front-end
MIT License
4 stars 36 forks source link

Create/update Giveaway Event by adding Type specific inputs #205

Open saulyz opened 3 years ago

saulyz commented 3 years ago

Please follow mutation documentation in the Playground for createGiveawayEvent(...): GiveawayEvent Based on the selected type 'Giveaway', render the Dialog UI with the corresponding fields. If fields are of the select type, preload options with relevant data using the DynamicSelector component.

NOTE: group field is not mandatory to create an event. Let's omit that now, as this is the next task scope.

Do a mutation and save event data.

saulyz commented 3 years ago

Good example how to use inputs is DetailsStep.tsx and AnimalForm.tsx