Skip to content

Commit

Permalink
update react-component-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Jan 17, 2023
1 parent f389948 commit 11bfe43
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 82 deletions.
144 changes: 71 additions & 73 deletions example/react-component-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions example/react-component-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"i18next": "21.6.16",
"i18next-browser-languagedetector": "6.1.4",
"i18next-http-backend": "1.4.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-i18next": "11.16.7",
"i18next": "22.4.9",
"i18next-browser-languagedetector": "7.0.1",
"i18next-http-backend": "2.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-i18next": "12.1.4",
"react-scripts": "5.0.1"
},
"scripts": {
Expand Down
File renamed without changes
5 changes: 2 additions & 3 deletions example/react-component-lib/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component, Suspense } from 'react';
import { useTranslation, withTranslation, Trans } from 'react-i18next';
import logo from './logo.svg';
import './App.css';

import { MyCompFromOtherLib } from './other-lib/component';
Expand Down Expand Up @@ -34,7 +33,7 @@ function Page() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<img src="logo.svg" className="App-logo" alt="logo" />
<Welcome />
<button type="button" onClick={() => changeLanguage('de')}>
de
Expand All @@ -56,7 +55,7 @@ function Page() {
// loading component for suspense fallback
const Loader = () => (
<div className="App">
<img src={logo} className="App-logo" alt="logo" />
<img src="logo.svg" className="App-logo" alt="logo" />
<div>loading...</div>
</div>
);
Expand Down

0 comments on commit 11bfe43

Please sign in to comment.