adarsh-shahi / adarsh-shahi/budget-tracker
Not allow two properties (primary & secondary) to be selected "together" as a prop - should implement in interface itsel(or use extra types)f
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### src -> components -> Button.tsx
- [ ] add functionality into interface prop (can use extra types) to not select both primary and secondary properties when passing the props because only one should be applied, but technically now both can be used as a prop but app functionality is to either it should be primary or secondary but not both
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by reading src/components/Button.tsx and inspect the Button props interface and its current primary and secondary properties. Update the prop typing so either property can be selected independently but both cannot be passed together; done means TypeScript accepts each valid variant and rejects a Button using both.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- frontend
- Tipo di issue
- Refactoring
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100