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

Questions #164

Open
vadim9999 opened this issue Jun 24, 2019 · 23 comments
Open

Questions #164

vadim9999 opened this issue Jun 24, 2019 · 23 comments

Comments

@vadim9999
Copy link
Collaborator

1.Headers HeaderShowcase and HeaderRecipes are working. HeaderRecipeFromShowcase.js doesn't export properly from the module. Which one I should use in this repo?
2. When I will enable it what should I do next? Have you tried enabling this header in showcase and recipe-antd?

@vadim9999
Copy link
Collaborator Author

@atherdon

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@atherdon
Copy link
Member

so, if i was you - i'll try to figure out the difference inside of code and try to make it for for all cases at the same time.
then i'll push new version at npm
then i'll install that latest version at all 3-4 repositories, that have header component and see if it works

@vadim9999
Copy link
Collaborator Author

vadim9999 commented Jun 24, 2019

@atherdon Please review header

@atherdon
Copy link
Member

i'm on it.
Should i review it only at this repo or also at recipe-antd and gs/showcase as well?

@vadim9999
Copy link
Collaborator Author

Review it at this repo. Now I will update at other recipe-antd and gs/showcase

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@vadim9999
Copy link
Collaborator Author

Header using component Link from react-router-dom. If you will use header without Router you will get Error

@vadim9999
Copy link
Collaborator Author

code looks ok, but i have fetch issue at selector, can you take a look?

it's in this repo?

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@vadim9999
Copy link
Collaborator Author

Header will be working with Router. Else you get this Error:

Error: Invariant failed: You should not use <Link> outside a <Router>

Because in Header we are using component Link that works in component BrowserRouter.
We can fix this replacing component Link by

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@vadim9999
Copy link
Collaborator Author

you can type localhost:3000/
In react-print-pdf I should add in BrowserRouter header that it will appear on all paths

@vadim9999
Copy link
Collaborator Author

In recipe-ant I also add it to router

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@vadim9999
Copy link
Collaborator Author

yes

@atherdon
Copy link
Member

​still got an error. maybe i should downgrade fetch? it maybe will help to my local version

image

@vadim9999
Copy link
Collaborator Author

yes, it's a problem with fetch. I tried to downgrade but it's not a success.
Now you can test showcase.

@vadim9999
Copy link
Collaborator Author

Summary

  1. In all 3 projects: react-print-pdf, recipe-antd, showcase are Header that will appear in all paths(/, padf1, groceries).
  2. Fetch in this 3 projects doesn't work. Need to fix it.
  3. After we will fix fetch we should add a listener on each button that is in Header. Now Header It's just buttons that nothing doing.

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@vadim9999
Copy link
Collaborator Author

Do you mean add here travic ci?

@atherdon
Copy link
Member

atherdon commented Jun 24, 2019 via email

@atherdon
Copy link
Member

i'm wroking on it. looks like it will be fixed soon. not ideal but - right now we don't have that eror. updating showcase and recipe-ntd with the same logic

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

No branches or pull requests

2 participants