Skip to content

Commit

Permalink
Upgrade libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
maslianok committed Jun 5, 2020
1 parent afbbb57 commit c78a331
Show file tree
Hide file tree
Showing 17 changed files with 5,493 additions and 3,694 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"prettier.singleQuote": true,
"prettier.arrowParens": "avoid",
"prettier.printWidth": 120
}
16 changes: 5 additions & 11 deletions examples/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"env": {
"browser": true
},
"plugins": [
"react"
],
"plugins": ["react"],
"rules": {
"no-underscore-dangle": 0,
"react/jsx-filename-extension": 0,
Expand All @@ -16,10 +14,8 @@
"comma-dangle": 0,
"import/no-named-as-default": 0,
"jsx-a11y/label-has-for": 0,
"max-len": [
"error",
120
],
"jsx-a11y/click-events-have-key-events": 0,
"max-len": ["error", 120],
"arrow-parens": [
"error",
"as-needed",
Expand All @@ -30,9 +26,7 @@
},
"settings": {
"import/resolve": {
"moduleDirectory": [
"node_modules"
]
"moduleDirectory": ["node_modules"]
}
}
}
}
10 changes: 5 additions & 5 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"dependencies": {
"classnames": "^2.2.6",
"linklocal": "^2.8.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-ga": "^2.5.7",
"react-helmet": "^5.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-ga": "^2.7.0",
"react-helmet": "^6.0.0",
"react-responsive-tabs": "file:../",
"react-scripts": "3.0.1"
"react-scripts": "3.4.1"
},
"scripts": {
"start": "linklocal && react-scripts start",
Expand Down
23 changes: 18 additions & 5 deletions examples/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import ReactGA from 'react-ga';
import Helmet from 'react-helmet';
import { Helmet } from 'react-helmet';
import cs from 'classnames';

import 'react-responsive-tabs/styles.css';
Expand Down Expand Up @@ -30,10 +30,19 @@ class App extends PureComponent {
<div className="container">
<Helmet
title="React tabs"
script={[{ src: 'https://buttons.github.io/buttons.js', async: true, defer: true }]}
script={[
{
src: 'https://buttons.github.io/buttons.js',
async: true,
defer: true,
},
]}
meta={[
{ name: 'description', content: 'React responsive tabs' },
{ property: 'keywords', content: 'react, tabs, responsive, accordion' },
{
property: 'keywords',
content: 'react, tabs, responsive, accordion',
},
]}
/>
<div className="jumbotron">
Expand All @@ -55,13 +64,17 @@ class App extends PureComponent {
</div>
<div className="menu">
<div
className={cs('menu-item', { 'menu-item--active': active === 'basic' })}
className={cs('menu-item', {
'menu-item--active': active === 'basic',
})}
onClick={this.onChangeExample('basic')}
>
basic usage
</div>
<div
className={cs('menu-item', { 'menu-item--active': active === 'removal' })}
className={cs('menu-item', {
'menu-item--active': active === 'removal',
})}
onClick={this.onChangeExample('removal')}
>
tabs removal
Expand Down
Loading

0 comments on commit c78a331

Please sign in to comment.