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

fix: eslint #199

Merged
merged 3 commits into from
Jul 28, 2024
Merged

fix: eslint #199

merged 3 commits into from
Jul 28, 2024

Conversation

amitojsingh
Copy link
Collaborator

@amitojsingh amitojsingh commented Jun 18, 2024

  1. Fix Eslint errors.
  2. Refactored the code.
  3. added footer for next bani.

return color || null;
};

export const fontSizeForReader = (SIZE, header, transliteration) => {

Choose a reason for hiding this comment

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

@amitojsingh veerji,
SIZE is the only parameter in full caps, any specific reason for this?

Choose a reason for hiding this comment

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

Also, there is another variable, in small caps size. Can you use different name for parameter or the variable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed veer ji.

[constant.GURMUKHI]: gurmukhiMapping,
[constant.TRANSLITERATION]: getHeaderColor1(),
[constant.TRANSLATION]: defaultColor,
};

Choose a reason for hiding this comment

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

What do you think about destructuring the constant object before this? And use GURMUKHI, TRANSLITERATION, and TRANSLATION directly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed Veer ji.

);
}

contentHtml += `</div>`;

Choose a reason for hiding this comment

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

Can we not use JSX to build this markup, instead of doing it manually from strings?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nopes veer ji as we tried multiple ways as we discussed earlier and we finalized this way.

@amitojsingh amitojsingh merged commit 089b94b into Version2.0 Jul 28, 2024
1 check passed
@amitojsingh amitojsingh deleted the automatic-transition branch July 28, 2024 20:44
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.

None yet

2 participants