nodejs-starter-kit
nodejs-starter-kit copied to clipboard
Reusable antd components.
Currently look module contains a reusable iteration of antd components but not all of them.
Steps-
- Choose the correct version.
- See if component is already there.
- If Not:
- Create a new file following existing naming convention.
- Write the component code like this Code
- Add the proptypes using this part of the antd component page.
- Update export in index.js file
- If component already present.
- Update the proptypes.
- If Not:
Ps leave out the data entry section of the antd components for now.
Comment here for any doubts
- create "actions" folder in "ui-antd/components"
- add 2 buttons for each action i.e (circular button with only icon) & (rectangular button with icon & text)
- create a demo page "demo/actions" - where all components are displayed & console.logs when clicked (onClick function should be passed from outside.)
- Btns with text will have default text but can be overided if "text" prop is passed.
- Define the proptypes in the respective components.
- add
- edit
- view
- delete (will have pop-confirm)
- next
- submit (will have pop-confirm, but will be configurable i.e. default false but show if "confirm=true" prop is passed)
- remove (minus icon) (will have pop-confirm, but will be configurable i.e. default false but show if "confirm=true" prop is passed)
- activate / deactivate (will have pop-confirm)
- publish / disable (will have pop-confirm)
@r-kohale9, @ishanajmeri