Skip to content

Commit da03d7b

Browse files
committed
Docs(readme): update README.md images and demo description
1 parent 663da58 commit da03d7b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
## Example
1313

14-
* [Demo Page](https://express-react-typescript.herokuapp.com/) - contains classic todo list, async call example, and 404 pages (with random [moe images](https://github.com/Armour/express-webpack-react-redux-typescript-boilerplate/tree/master/frontend/src/pages/NotFoundPage/assets/images) lol)
14+
* [Demo Page](https://express-react-typescript.herokuapp.com/) - contains classic todo list, async server call, and 404 page with random [moe images](https://github.com/Armour/express-webpack-react-redux-typescript-boilerplate/tree/master/frontend/src/pages/NotFoundPage/assets/images). (Support multi-language, currently English, Chinese, and Japanese)
1515

16-
![Home Page](https://user-images.githubusercontent.com/5276065/44063567-dc99dc68-9f15-11e8-942f-e13acc45584a.png)
16+
![Home Page](https://user-images.githubusercontent.com/5276065/44188928-402d7800-a0d5-11e8-8445-0c0dece815c2.png)
1717

18-
![React Page](https://user-images.githubusercontent.com/5276065/44063568-dcabd422-9f15-11e8-8976-2c697dd011a6.png)
18+
![React Page](https://user-images.githubusercontent.com/5276065/44188929-402d7800-a0d5-11e8-8580-f9a330765f6a.png)
1919

20-
![404 Page](https://user-images.githubusercontent.com/5276065/44063569-dcbe94ea-9f15-11e8-86db-52d636eef1af.png)
20+
![404 Page](https://user-images.githubusercontent.com/5276065/44188930-402d7800-a0d5-11e8-919c-a4baa2c969ab.png)
2121

2222
## Stack
2323

frontend/src/pages/HomePage/components/Carousel/carousel.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ class Carousel extends React.Component<ICarouselProps> {
4040
}
4141

4242
public componentDidMount() {
43-
const { t } = this.props;
44-
toastConfig.html = t('toast-text');
45-
tooltipConfig.html = t('tooltip-text');
46-
47-
const tooltipElems = document.querySelectorAll('.tooltipped');
48-
M.Tooltip.init(tooltipElems, tooltipConfig);
4943
const carouselElems = document.querySelectorAll('.carousel.carousel-slider');
5044
const carousels = M.Carousel.init(carouselElems, carouselConfig);
5145
this.timer = window.setTimeout(() => this.autoPlayCarousel(carousels), CAROUSEL_AUTOPLAY_INTERVAL);
@@ -70,6 +64,10 @@ class Carousel extends React.Component<ICarouselProps> {
7064

7165
public render() {
7266
const { t } = this.props;
67+
toastConfig.html = t('toast-text');
68+
tooltipConfig.html = t('tooltip-text');
69+
const tooltipElems = document.querySelectorAll('.tooltipped');
70+
M.Tooltip.init(tooltipElems, tooltipConfig);
7371
return (
7472
<div className='carousel carousel-slider center z-depth-3' data-indicators='true'>
7573
<div className='carousel-fixed-item center'>

0 commit comments

Comments
 (0)