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

Display icons based on file types. #906

Merged
merged 7 commits into from
Feb 19, 2021
Merged

Display icons based on file types. #906

merged 7 commits into from
Feb 19, 2021

Conversation

ioedeveloper
Copy link
Member

@ioedeveloper ioedeveloper commented Feb 18, 2021

Fixes #198

@ioedeveloper ioedeveloper added enhancement New feature or request remix-ide labels Feb 18, 2021
@ioedeveloper ioedeveloper changed the title Fe icons Display icons based on file types. Feb 18, 2021
find: find
find: find,
getPathIcon (path) {
return path.endsWith('.txt')
Copy link
Contributor

Choose a reason for hiding this comment

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

that would be perhaps more readable with a switch case

Copy link
Member Author

Choose a reason for hiding this comment

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

A switch statement will not work so well for path.endsWith() because the argument for switch will need to match a case, which we don't have in this case.

Copy link
Collaborator

@Aniket-Engg Aniket-Engg left a comment

Choose a reason for hiding this comment

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

Change set looks fine. It would be great if some tests can be added for this.

@ioedeveloper ioedeveloper merged commit 23b9799 into master Feb 19, 2021
@ioedeveloper ioedeveloper deleted the FE-icons branch February 19, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request remix-ide
Projects
None yet
Development

Successfully merging this pull request may close these issues.

icons for files
3 participants