Replace classnames with clsx

This commit is contained in:
SleepWalker
2019-12-07 21:43:08 +02:00
parent d226fb2974
commit c638c1566e
29 changed files with 73 additions and 89 deletions

View File

@ -1,5 +1,5 @@
import React from 'react';
import classNames from 'classnames';
import clsx from 'clsx';
import { FormattedMessage as Message } from 'react-intl';
import { Helmet } from 'react-helmet';
import { LinkButton } from 'app/components/ui/form';
@ -109,7 +109,7 @@ function Loader({ noApps }: { noApps: boolean }) {
/>
<div
className={classNames(styles.noAppsContainer, {
className={clsx(styles.noAppsContainer, {
[styles.noAppsAnimating]: noApps,
})}
>

View File

@ -1,7 +1,7 @@
import React from 'react';
import { FormattedMessage as Message } from 'react-intl';
import { Link } from 'react-router-dom';
import classNames from 'classnames';
import clsx from 'clsx';
import { SKIN_LIGHT, COLOR_BLACK, COLOR_RED } from 'app/components/ui';
import { Input, Button } from 'app/components/ui/form';
import { OauthAppResponse } from 'app/services/api/oauth';
@ -63,7 +63,7 @@ export default class ApplicationItem extends React.Component<
return (
<div
className={classNames(styles.appItemContainer, {
className={clsx(styles.appItemContainer, {
[styles.appExpanded]: expand,
})}
data-e2e="appItem"