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

Added notification link in dropdown #166

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Conversation

RohitKuwar
Copy link
Contributor

@RohitKuwar RohitKuwar commented Mar 11, 2021

@Kratika0907 Please review the PR.

Notification link in the dropdown.
Screenshot (483)

notification page in desktop view.
Screenshot (482)

notification page in mobile view.
Screenshot (481)

@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 11, 2021 12:13 Inactive
@RohitKuwar RohitKuwar requested a review from Kratika0907 March 11, 2021 12:13
@RohitKuwar RohitKuwar self-assigned this Mar 11, 2021
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 11, 2021 12:14 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 11, 2021 12:16 Inactive
Copy link
Contributor

@sumitd94 sumitd94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change requested, please check.

Comment on lines 11 to 64
<li>
<div className="notificationArea">
<h4>Rohit has requested RDS 200 from you</h4>
<div className="buttons">
<button className="approve">Approve</button>
<button className="discard">Discard</button>
</div>
</div>
</li>
<li>
<div className="notificationArea">
<h4>Rohit has requested RDS 200 from you</h4>
<div className="buttons">
<button className="approve">Approve</button>
<button className="discard">Discard</button>
</div>
</div>
</li>
<li>
<div className="notificationArea">
<h4>Rohit has requested RDS 200 from you</h4>
<div className="buttons">
<button className="approve">Approve</button>
<button className="discard">Discard</button>
</div>
</div>
</li>
<li>
<div className="notificationArea">
<h4>Rohit has requested RDS 200 from you</h4>
<div className="buttons">
<button className="approve">Approve</button>
<button className="discard">Discard</button>
</div>
</div>
</li>
<li>
<div className="notificationArea">
<h4>Rohit has requested RDS 200 from you</h4>
<div className="buttons">
<button className="approve">Approve</button>
<button className="discard">Discard</button>
</div>
</div>
</li>
<li>
<div className="notificationArea">
<h4>Rohit has requested RDS 200 from you</h4>
<div className="buttons">
<button className="approve">Approve</button>
<button className="discard">Discard</button>
</div>
</div>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please refactor this? li has a similar pattern throughout. Maybe create a new function that returns this li and call that function 4-5 times, or create a component and call that component 4-5 times.

That will make this code much more clean and readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok thnks. I will make the changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sumitd94 Changes has been made. Please check.

@ankushdharkar ankushdharkar had a problem deploying to crypto-pipel-rohitkuwar-k1moxl March 12, 2021 05:37 Failure
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 12, 2021 05:38 Inactive
Copy link
Contributor

@sumitd94 sumitd94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change requested please.

{
data.map((item) => {
return(
<li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key is missing here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Please check.

@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 12, 2021 09:05 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 12, 2021 09:16 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-rohitkuwar-k1moxl March 12, 2021 09:22 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants