Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored the QuestionBox Component in Worksheet #255

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sidtohan
Copy link
Contributor

@sidtohan sidtohan commented Aug 7, 2022

Description

Refactored the QuestionBox component in the module Worksheet as part of the refactoring progress

Changes

  • added interfaces wherever applicable
  • created a new component HTMLPrint, that renders the given HTML in a div and returns it, shifted it from outside index.tsx to make it easier to use in other components(if required)
  • extracted one component 'QuestionOption' from QuestionBox to increase readibility

How to test

  1. Run the module using the command: lerna run start --parallel --scope='{worksheet,@shiksha/common-lib,core,students,attendance}'
  2. The module should work fine as no other changes have been added, other than refactoring and enhancing modularity.

Refactored Components

QuestionOption

feature

HTMLPrint

feature gif

@sidtohan sidtohan force-pushed the sidtohan/tsrefactor/questionbox branch 2 times, most recently from 08accaf to ab26f0d Compare August 10, 2022 11:55
* added interfaces wherever applicable
* created a new component HTMLPrint, that renders the given HTML in a div and returns it, shifted it from outside index.tsx to make it easier to use in other components(if required)
* extracted one component 'QuestionOption' from QuestionBox to increase readibility
@sidtohan sidtohan force-pushed the sidtohan/tsrefactor/questionbox branch from ab26f0d to bfa9a20 Compare August 10, 2022 11:58
@sidtohan
Copy link
Contributor Author

@Shruti3004 @coolbung @sagarkoshti1990 please kindly review whenever possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants