-
Notifications
You must be signed in to change notification settings - Fork 501
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(files): Remove use of localstorage. #217
Conversation
I think thats good for now. It would be cool to list things inside |
@whyrusleeping why don't you open an issue for that :P |
How does it list all? |
👍 for removing local storage |
@jbenet this is how it does it currently:
(that was like this before) would |
As discussed this removes the local tab in favor of the all and pinned tabs. Also makes the drop area for files visible at all times. Closes #32
ab31d4a
to
c3d04b5
Compare
this is fine i think |
|
LGTM from a UX perspective |
@@ -33,36 +31,53 @@ default class Files extends React.Component { | |||
clearInterval(this.pollInterval) | |||
} | |||
|
|||
getFiles = () => { | |||
getFiles () { |
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.
isn't there a missing =
and =>
here, even if just for consistency
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.
No, the important part is that these are two different sorts of methods, if you declare them like this:
getFiles () {
}
it's a regular method. If you declare it like this:
getFiles = () => {
}
it means that in addition it is bound i.e. getFiles = getFiles.bind(this)
where this
is the instance of the class.
As this method is not used passed somewhere there is no need to bind it.
Other than the one comment, LGTM :) nice! |
fix(files): Remove use of localstorage.
As discussed this removes the local tab in favor of the
all and pinned tabs. Also makes the drop area for files
visible at all times.
Closes #32
@jbenet @whyrusleeping please take a look if this is okay for listing files for now or if there are better methods.