-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ui changes preview screen and localisations * css updates * succes screen and code review changes --------- Co-authored-by: suryansh-egov <suryansh.singh.egovernments.org>
- Loading branch information
1 parent
c948b76
commit e7821da
Showing
12 changed files
with
403 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
...ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/CreatePopup.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...eb/micro-ui-internals/packages/modules/campaign-manager/src/components/MobileChecklist.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
|
||
const MobileChecklist = ({ questions, checklistName , typeOfChecklist}) => { | ||
// Filter questions with parentId as null | ||
const topLevelQuestions = questions.filter(q => q.parentId === null); | ||
|
||
return ( | ||
<div className="mobile-screen"> | ||
<div className="mobile-top-bar"> | ||
<div className="mobile-menu-icon">☰</div> | ||
</div> | ||
|
||
<div className="mobile-container"> | ||
<div className="mobile-header"> | ||
<h2 className='mobile-checklist-highlight'>{typeOfChecklist}</h2> | ||
<h1 className="mobile-checklist-highlight">{checklistName}</h1> | ||
<p className="mobile-description"> | ||
</p> | ||
</div> | ||
|
||
<div className="mobile-questions"> | ||
{topLevelQuestions.map(question => ( | ||
<div key={question.id} className="mobile-question-item"> | ||
<p className="mobile-question">{question.title}</p> | ||
{question.options && question.options.length > 0 && ( | ||
<div className="mobile-options"> | ||
{question.options.map((option, index) => ( | ||
<p key={index} className="mobile-answer">{option.label}</p> | ||
))} | ||
</div> | ||
)} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MobileChecklist; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.