worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
27
node_modules/react-i18next/dist/commonjs/withSSR.js
generated
vendored
Normal file
27
node_modules/react-i18next/dist/commonjs/withSSR.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.withSSR = void 0;
|
||||
var _react = require("react");
|
||||
var _useSSR = require("./useSSR.js");
|
||||
var _context = require("./context.js");
|
||||
var _utils = require("./utils.js");
|
||||
const withSSR = () => function Extend(WrappedComponent) {
|
||||
function I18nextWithSSR({
|
||||
initialI18nStore,
|
||||
initialLanguage,
|
||||
...rest
|
||||
}) {
|
||||
(0, _useSSR.useSSR)(initialI18nStore, initialLanguage);
|
||||
return (0, _react.createElement)(WrappedComponent, {
|
||||
...rest
|
||||
});
|
||||
}
|
||||
I18nextWithSSR.getInitialProps = (0, _context.composeInitialProps)(WrappedComponent);
|
||||
I18nextWithSSR.displayName = `withI18nextSSR(${(0, _utils.getDisplayName)(WrappedComponent)})`;
|
||||
I18nextWithSSR.WrappedComponent = WrappedComponent;
|
||||
return I18nextWithSSR;
|
||||
};
|
||||
exports.withSSR = withSSR;
|
||||
Loading…
Add table
Add a link
Reference in a new issue