Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed Dec 1, 2023
1 parent b929a81 commit 5791ced
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/common-components/Logistration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import { LoginPage } from '../login';
import { RegistrationPage } from '../register';
import { backupRegistrationForm } from '../register/data/actions';
import { clearThirdPartyAuthContextErrorMessage } from './data/actions';
import {
tpaProvidersSelector,
} from './data/selectors';
import messages from './messages';

const Logistration = (props) => {
Expand All @@ -33,7 +30,7 @@ const Logistration = (props) => {
const {
providers, secondaryProviders,
} = tpaProviders;
console.log('providers', providers, secondaryProviders)
console.log('providers', providers, secondaryProviders);

Check warning on line 33 in src/common-components/Logistration.jsx

View workflow job for this annotation

GitHub Actions / tests

Unexpected console statement
const { formatMessage } = useIntl();
const [institutionLogin, setInstitutionLogin] = useState(false);
const [key, setKey] = useState('');
Expand Down Expand Up @@ -157,6 +154,7 @@ Logistration.defaultProps = {
selectedPage: REGISTER_PAGE,
};

// eslint-disable-next-line no-unused-vars
const mapStateToProps = state => ({
tpaProviders: { providers: [], secondaryProviders: [] },
});
Expand Down
1 change: 1 addition & 0 deletions src/login/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class LoginPage extends React.Component {
return errors.password;
}

// eslint-disable-next-line default-param-last
renderThirdPartyAuth(providers = [], secondaryProviders = [], currentProvider, thirdPartyAuthApiStatus, intl) {
const isInstitutionAuthActive = !!secondaryProviders.length && !currentProvider;
const isSocialAuthActive = !!providers.length && !currentProvider;
Expand Down
Empty file added webpack.dev-tutor.config.js
Empty file.

0 comments on commit 5791ced

Please sign in to comment.