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
[Priority 2] WEBPACK #375
[Priority 2] WEBPACK #375
Conversation
@mod @calj @josadcha @VladyslavP @akhlopiachyi @oyershov Tips for reviewing:
|
… into move-to-webpack
|
||
const locale = 'en'; | ||
|
||
export const TestComponentWrapper: React.FC = ({ children }) => { |
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.
Please, use "App" for this functional, not "TestComponentWrapper"
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.
This is wrapper for a component which is under the unit test. This is not the application's wrapper. Are you sure to rename it to App
?
src/App.tsx
Outdated
// const lang = useSelector(selectCurrentLanguage); | ||
// const isMobileDevice = useSelector(selectMobileDeviceState); | ||
// return ( | ||
// <IntlProvider | ||
// {...{ locale: lang }} | ||
// defaultLocale={lang} | ||
// messages={getTranslations(lang, isMobileDevice)} | ||
// key={lang}> | ||
// <Router history={browserHistory}> | ||
// <Switch> | ||
// <Route exact={true} path="/" component={SignInScreen} /> | ||
// </Switch> | ||
// </Router> | ||
// </IntlProvider> | ||
// ); |
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.
Please, put here code from "TestComponentWrapper"
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.
this is test code, I removed it. This App
component contains IntlProvider
and ReduxProvider
wraps it on upper level
<title>Cryptobase</title> | ||
</head> | ||
<body> | ||
<script src="/config/env.js"></script> |
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.
Don't you need "%PUBLIC_URL%" prefix? I'm not sure this will work in production, need to make a build and check.
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, this is webpack's template html page. Relative path is enough.
@@ -3,7 +3,8 @@ import { | |||
connect, | |||
MapStateToProps, | |||
} from 'react-redux'; | |||
import { initGeetest } from '../../helpers/geetest'; | |||
// MUST BE REMOVED: Vadym P. responsibility |
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 do we need to remove geetest captcha?
- Why it's your responsibility?
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.
will push fix for geetest
to this PR
@@ -0,0 +1,281 @@ | |||
// /* eslint-disable */ |
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 do we need this to be merged right now to master? If it's some code for the future, make proper PR with it
2205fee
to
10cd24a
Compare
No description provided.