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 lint errors #530

Merged
merged 5 commits into from
May 27, 2024
Merged

fix lint errors #530

merged 5 commits into from
May 27, 2024

Conversation

Algorush
Copy link
Collaborator

@Algorush Algorush commented May 23, 2024

Fix issue: #527

Copy link

netlify bot commented May 23, 2024

Deploy Preview for 3dstreet-core-builds ready!

Name Link
🔨 Latest commit 6ad4495
🔍 Latest deploy log https://app.netlify.com/sites/3dstreet-core-builds/deploys/66520b1bafbd210008d7678e
😎 Deploy Preview https://deploy-preview-530--3dstreet-core-builds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Algorush Algorush changed the title fix lint errors fix lint errors PR#527 May 23, 2024
@Algorush Algorush changed the title fix lint errors PR#527 fix lint errors May 24, 2024

// load from URL encoded Streetplan JSON
if (data.streetplanEncJSON) {
const streetplanJSON = decodeURIComponent(encodedString);
const streetplanJSON = decodeURIComponent(data.streetplanEncJSON);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems you fixed a real issue here. Great.

@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from 'react';
import { useEffect, useRef, useState } from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

You need to use useCallback for handleClickOutside

@@ -60,7 +60,7 @@ const SceneEditTitle = ({ sceneData }) => {
<input
className={styles.title}
value={title}
onChange={handleChange}
// onChange={handleChange}
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Judging by how I understood the code, there is no need to use the onChange handler for this input, at least now. Because the new scene title is entered in the prompt window. Related issue: 3DStreet/3dstreet-editor#311

@Algorush Algorush mentioned this pull request May 26, 2024
@kfarr kfarr merged commit 0456ae1 into main May 27, 2024
5 checks passed
@kfarr kfarr deleted the fix-linting-errors branch May 27, 2024 15:33
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.

3 participants