-
Notifications
You must be signed in to change notification settings - Fork 36
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
refactor(src-components): rename files to common naming style #1351
refactor(src-components): rename files to common naming style #1351
Conversation
…into feat/1238/rename-files-in-src-components
src/components/pages/Admin/RegistrationRequests/ConfirmationOverlay/ConfirmCancelOverlay.tsx
Fixed
Show fixed
Hide fixed
src/components/pages/Admin/RegistrationRequests/ConfirmationOverlay/ConfirmCancelOverlay.tsx
Fixed
Show fixed
Hide fixed
…into feat/1238/rename-files-in-src-components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lavanya-bmw please resolve conflict
@manojava-gk @kunalgaurav-bmw please review
@@ -96,14 +96,14 @@ const ConfirmaCancelOverlay = ({ | |||
<DialogHeader | |||
title={t( | |||
'content.admin.registration-requests.confirmCancelModal.title' | |||
).replace('{companyName}', companyName ? companyName : '')} | |||
).replace('{companyName}', companyName)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the condition is to prevent crash issue. Kindly reverify once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In line 86, we are checking for companyName availability, so the condition here is not required
/> | ||
<DialogContent> | ||
<div style={{ textAlign: 'center' }}> | ||
<Typography variant="body1"> | ||
{t( | ||
'content.admin.registration-requests.confirmCancelModal.description' | ||
).replace('{companyName}', companyName ? companyName : '')} | ||
).replace('{companyName}', companyName)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the condition is to prevent crash issue. Kindly reverify once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In line 86, we are checking for companyName availability, so the condition here is not required
@@ -228,7 +229,7 @@ export const RegistrationRequestsTableColumns = ( | |||
</span> | |||
{row.applicationStatus === ApplicationRequestStatus.SUBMITTED && | |||
!row.bpn && ( | |||
<span | |||
<Box |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this pattern looks weird.
<div>
<span></span>
<Box></Box>
</div>
Pls refactor this container
import type { AppDetails } from 'features/apps/types' | ||
import { PrivacyPolicyType } from 'features/adminBoard/adminBoardApiSlice' | ||
import '../../AppDetail.scss' | ||
import '../style.scss' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to use only ./style.scss
.
move css to respective file and remove the import statement
import './AppDetailTags.scss' | ||
import '../../AppDetail.scss' | ||
import './style.scss' | ||
import '../style.scss' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to use only ./style.scss.
move css to respective file and remove the import statement
@lavanya-bmw sonarcloud flagged 3 issues can you check them once. |
I will check with @oyo regarding these issues as I think they are not valid issues |
…into feat/1238/rename-files-in-src-components
…into feat/1238/rename-files-in-src-components
@isaadansari could you please review as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…into feat/1238/rename-files-in-src-components
…into feat/1238/rename-files-in-src-components
Quality Gate passedIssues Measures |
@evegufy sorry I missed your message, |
@lavanya-bmw if you are cleaning up the codebase, I have a few suggestions,
|
Hi @saadanzari great that you think of such suggestions. Could you please create issues of those suggestions? A comment on an already merged pull request won't get implemented. |
thanks for the feedback @evegufy I have created separate enhancement tickets for them. |
Description
Renamed files in src/components folder to common naming style
Changelog:
Why
All files in src/components should follow one naming style
Issue
#1238
Checklist
Please delete options that are not relevant.