Skip to content

Commit

Permalink
fix: update classnames library which has default export type (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jul 22, 2021
1 parent 8d57b53 commit c771405
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
},
"dependencies": {
"@uirouter/core": "6.0.7",
"classnames": "^2.2.5",
"classnames": "^2.3.1",
"prop-types": "^15.6.1"
},
"peerDependencies": {
"react": "^16.8.0"
},
"devDependencies": {
"@types/classnames": "^2.2.11",
"@types/classnames": "^2.3.1",
"@types/enzyme": "^3.10.8",
"@types/jest": "^26.0.19",
"@types/lodash": "^4.14.165",
Expand Down
5 changes: 1 addition & 4 deletions src/components/UISref.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { isFunction, TransitionOptions } from '@uirouter/core';

import * as _classNames from 'classnames';
import classNames from 'classnames';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import { cloneElement, useCallback, useMemo } from 'react';
import { useSref } from '../hooks/useSref';

/** @hidden */
let classNames = _classNames;

export interface UISrefProps {
children?: any;
to: string;
Expand Down
5 changes: 1 addition & 4 deletions src/components/UISrefActive.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import * as React from 'react';
import { useState, useCallback, useContext, useMemo, cloneElement } from 'react';
import * as _classNames from 'classnames';
import classNames from 'classnames';

import { useCurrentStateAndParams, useRouter } from '../hooks';

/** @hidden */
let classNames = _classNames;

export interface UISrefActiveState {
stateName: string;
params: object;
Expand Down
17 changes: 10 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,12 @@
dependencies:
"@types/node" "*"

"@types/classnames@^2.2.11":
version "2.2.11"
resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.2.11.tgz#2521cc86f69d15c5b90664e4829d84566052c1cf"
integrity sha512-2koNhpWm3DgWRp5tpkiJ8JGc1xTn2q0l+jUNUE7oMKXUf5NpI9AIdC4kbjGNFBdHtcxBD18LAksoudAVhFKCjw==
"@types/classnames@^2.3.1":
version "2.3.1"
resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.3.1.tgz#3c2467aa0f1a93f1f021e3b9bcf938bd5dfdc0dd"
integrity sha512-zeOWb0JGBoVmlQoznvqXbE0tEC/HONsnoUNH19Hc96NFsTAwTXbTqb8FMYkru1F/iqp7a18Ws3nWJvtA1sHD1A==
dependencies:
classnames "*"

"@types/color-name@^1.1.1":
version "1.1.1"
Expand Down Expand Up @@ -2265,9 +2267,10 @@ class-utils@^0.3.5:
isobject "^3.0.0"
static-extend "^0.1.1"

classnames@^2.2.5:
version "2.2.6"
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"
classnames@*, classnames@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e"
integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==

cliui@^5.0.0:
version "5.0.0"
Expand Down

0 comments on commit c771405

Please sign in to comment.