fossasia / accounts.susi.ai

Accounts Service for SUSI.AI http://accounts.susi.ai
GNU Lesser General Public License v2.1
1.51k stars 94 forks source link

Refactored code in index.js #670

Closed plxity closed 5 years ago

plxity commented 5 years ago

Fixes #669

Changes: Imported all components in one file and then exported

Surge Deployment Link: https://pr-670-fossasia-susi-accounts.surge.sh

plxity commented 5 years ago

@sakshee-19 Yeah sure, It is very useful in case when you require your component somewhere else. You don't have to write the whole path instead of that just export it from the component.js file and secondly, if you somehow change file location you won't have to change it in every file where you have imported that component. Just change the component,js file and you are done.

anshumanv commented 5 years ago

Not needed as per the issue discussion.