-
Notifications
You must be signed in to change notification settings - Fork 8
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: Clear console errors #244
Conversation
cc73bf5
to
e078471
Compare
package.json
Outdated
@@ -57,7 +57,7 @@ | |||
"dependencies": { | |||
"@atlaskit/icon": "21.1.0", | |||
"@atlaskit/media-core": "32.2.0", | |||
"@material-ui/core": "4.12.3", | |||
"@material-ui/core": "4.11.4", |
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.
why this downgrade?
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.
it is required with the version of cozy-ui we use
const EditorCorner = ({ doc, isPublic, isReadOnly, title }) => { | ||
const { t } = useI18n() | ||
if (!isPublic) return <SharingWidget file={doc.file} title={title} /> | ||
else if (isReadOnly) { | ||
return ( | ||
<Tooltip title={t('Notes.Editor.read_only')}> | ||
<Icon icon="lock" color="var(--primaryTextColor)" /> | ||
<ForwardedIcon icon="lock" color="var(--primaryTextColor)" /> |
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.
Why not updating cozy-ui in order to forwardRef by default on Icon? 🤔
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 don't remember why I didn't choose to update cozy-ui, maybe there were more problems. I can do that though
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.
Did you created the issue on cozy-ui? Can you link it in the code?
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 didn't create an issue yet, the build is failing with the latest cozy-ui for a different reason (konnector related)
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 mean, I'm not sure the forwardRef error exists with the latest cozy-ui (that doesn't work on cozy-notes right now, I prefered delivering the fixes instead)
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'm pretty sur the issue still exist in the latest UI's version
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 will check on the latest version after cozy-notes is delivered
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.
Did you created the issue of cozy-sharing side? It is already created so you can link to it form here? |
màj cozy-ui |
e078471
to
34373cf
Compare
Update: cozy-ui update is too complex, leaving it as is for now |
34373cf
to
8db2552
Compare
8db2552
to
7d41d04
Compare
Clearing small bugs that polluted the console. There is still one:
But it's not possible to fix it from cozy-notes, it's a cozy-sharing issue.