Skip to content

Commit

Permalink
Merge pull request #120 from elastic/trentm/fix-lint-warnings
Browse files Browse the repository at this point in the history
fix: lint warnings so 'CI=true npm run build' passes
  • Loading branch information
trentm authored Mar 9, 2023
2 parents 61b4e47 + 2cd0319 commit c03d485
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/App/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component } from 'react';
import classnames from 'classnames';
import { useParams,Route, Navigate, Routes } from 'react-router-dom'
import { withTransaction } from '@elastic/apm-rum-react'

import AppHeader from '../AppHeader';
import AppFooter from '../AppFooter';
Expand Down Expand Up @@ -55,7 +54,7 @@ class App extends Component {
<Route path="/products" element={<Products />} />
<Route path="/products/:id" element={<ProductId />} />
<Route path="/orders" element={<Orders />} />
<Route path="/orders/:id" element={<OrderId />} />
<Route path="/orders/:id" element={<OrderId />} />
<Route path="/customers" element={ <Customers />} />
<Route path="/customers/:id" element={<CustomerId />} />
<Route element={NotFound} />
Expand Down
2 changes: 2 additions & 0 deletions src/components/AppFooter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class AppFooter extends Component {
<NavLink className="item" style={({ isActive }) => isActive ? {textDecoration: "underline"} : undefined} to="/dashboard">
Dashboard
</NavLink>
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" onClick={ this.getSettingsWindow } className="item">Settings</a>
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" className="item disabled">Log out</a>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/reducers/initialState.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/no-anonymous-default-export
export default {
product: { loading: true, product: {} },
productCustomers: { loading: false, items: [] },
Expand Down

0 comments on commit c03d485

Please sign in to comment.