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

changed the loading message and added a component and its style #193

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DevEmmy
Copy link

@DevEmmy DevEmmy commented Mar 27, 2022

Description

Changing from "Loading..." text when a page is on refresh to a css animation.

Changes

In the Constant > messages.js file, I replaced the "loading..." text with a component which I titled "Loader.jsx"

@GMishx GMishx added needs review Need code review needs test Needs testing labels Mar 28, 2022
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Changes looks good.

However, I doubt some files are in CRLF line format instead of Linux's LF line format. Please check.

@GMishx GMishx removed the needs review Need code review label Mar 28, 2022
src/constants/messages.js Outdated Show resolved Hide resolved
src/constants/messages.js Show resolved Hide resolved
@DevEmmy
Copy link
Author

DevEmmy commented Mar 28, 2022

@GMishx I use Linux instead of Windows

@DevEmmy
Copy link
Author

DevEmmy commented Mar 28, 2022

Resolved the loader import issue as suggested by @soham4abc

@DevEmmy
Copy link
Author

DevEmmy commented Mar 28, 2022

closes #185

@soham4abc
Copy link
Contributor

Resolved the loader import issue as suggested by @soham4abc

There are some more issues that You need to fix... You need to change the .js files to .jsx and need to re import wherever they are used.. I cloned you code and fixed those issues in my local.. If you face any issues feel free to ask me

@DevEmmy
Copy link
Author

DevEmmy commented Mar 28, 2022

@soham4abc I already did that.

Check my latest push

Copy link
Contributor

@soham4abc soham4abc left a comment

Choose a reason for hiding this comment

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

After accepting my commit suggestions and pulling in You can do the following to get rid of the errors.

Change Loader.js to Loader.jsx

Change messages.js to messages.jsx

Use Global Search to change the import from:

import messages from "constants/messages";

to

import messages from "constants/messages.jsx";

There are total 18 occurrence of the above mentioned change

And add <Loader/> instead of loading... in index.jsx line number 26. Do not forget to add the import for Loader there

Also one important thing, this repo follows a code formatting format. You can use Prettier code formatter (Available as VS code extension) and format the changed files so that it follows the formatting style of this repo.

Thank you!!


function Loader() {
return (
<span class="loader"></span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<span class="loader"></span>
<span className="loader"/>

@soham4abc
Copy link
Contributor

@DevEmmy are you still working on this issue?

@DevEmmy
Copy link
Author

DevEmmy commented Apr 4, 2022

Is it working nice?
Or you got errors?

If there are errors, you could let me know so I can fix it.

@soham4abc
Copy link
Contributor

Is it working nice? Or you got errors?

If there are errors, you could let me know so I can fix it.

there are some errors currently, I suggested some changes which should fix them. Do let me know if you have issues understanding them. :-)

@GMishx
Copy link
Member

GMishx commented May 30, 2022

@DevEmmy , are there any updates on this PR?

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

Successfully merging this pull request may close these issues.

3 participants