Skip to content

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
  • Loading branch information
incorbador committed Nov 7, 2024
1 parent d6b58b7 commit 9734e8e
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
17 changes: 8 additions & 9 deletions packages/connect-react/src/components/CorbadoConnectDemo.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
import type { CorbadoConnectDemoConfig } from '@corbado/types';
import type { Passkey } from '@corbado/web-core';

import type { FC } from 'react';
import React from 'react';

import PasskeyList, { PasskeyListState } from './passkeyList/PasskeyList';
import DeleteModal from './passkeyList/DeleteModal';
import AlreadyExistingModal from './passkeyList/AlreadyExistingModal';
import PasskeyAppendNotSupportedModal from './passkeyList/PasskeyAppendNotSupportedModal';
import AppendInitLoading from './append/append-init/AppendInitLoading';
import AppendInitLoaded from './append/append-init/AppendInitLoaded';
import AppendInitLoading from './append/append-init/AppendInitLoading';
import AppendSuccessScreen from './append/AppendSuccessScreen';
import LoginErrorHard from './login/base/LoginErrorHard';
import LoginErrorSoft from './login/base/LoginErrorSoft';
import LoginHybrid from './login/base/LoginHybrid';
import LoginInitLoaded from './login/base/LoginInitLoaded';
import LoginInitLoading from './login/base/LoginInitLoading';
import LoginHybrid from './login/base/LoginHybrid';
import LoginOneTap from './login/base/LoginOneTap';
import LoginErrorSoft from './login/base/LoginErrorSoft';
import LoginErrorHard from './login/base/LoginErrorHard';
import AlreadyExistingModal from './passkeyList/AlreadyExistingModal';
import DeleteModal from './passkeyList/DeleteModal';
import PasskeyAppendNotSupportedModal from './passkeyList/PasskeyAppendNotSupportedModal';
import PasskeyList, { PasskeyListState } from './passkeyList/PasskeyList';

const getListOfPasskeys = () => {
const out: Passkey[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { AppendScreenType } from '../../types/screenTypes';
import { AppendSituationCode, getAppendErrorMessage } from '../../types/situations';
import { StatefulLoader } from '../../utils/statefulLoader';
import AppendBenefits from './append-init/AppendBenetifs';
import AppendInitLoading from './append-init/AppendInitLoading';
import AppendInitLoaded from './append-init/AppendInitLoaded';
import AppendInitLoading from './append-init/AppendInitLoading';

export enum AppendInitState {
SilentLoading,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import { LinkButton } from '../../shared/LinkButton';
import { PrimaryButton } from '../../shared/PrimaryButton';
import { PasskeyIcon } from '../../shared/icons/PasskeyIcon';

import { ErrorIcon } from '../../shared/icons/ErrorIcon';
import { PasskeyIcon } from '../../shared/icons/PasskeyIcon';
import { LinkButton } from '../../shared/LinkButton';
import { OutlineButton } from '../../shared/OutlineButton';
import { PrimaryButton } from '../../shared/PrimaryButton';

type Props = {
loading: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { FormEvent } from 'react';
import type { FormEvent } from 'react';
import React from 'react';

import { Button } from './Button';
import { ArrowRight } from './icons/ArrowRight';
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-react/src/css/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

.demo-controls-item input {
margin-right: 2rem;
margin-top: .2rem;
margin-top: 0.2rem;
}
2 changes: 1 addition & 1 deletion packages/connect-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import './index.css';

import CorbadoConnectAppend from './components/CorbadoConnectAppend';
import CorbadoConnectDemo from './components/CorbadoConnectDemo';
import CorbadoConnectLogin from './components/CorbadoConnectLogin';
import CorbadoConnectLoginSecondFactor from './components/CorbadoConnectLoginSecondFactor';
import CorbadoConnectPasskeyList from './components/CorbadoConnectPasskeyList';
import { CorbadoConnectProvider } from './components/CorbadoConnectProvider';
import CorbadoConnectModal from './components/shared/CorbadoConnectModal';
import CorbadoConnectDemo from './components/CorbadoConnectDemo';

export {
CorbadoConnectLogin,
Expand Down
7 changes: 5 additions & 2 deletions playground/connect-next/app/demo/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@
border-radius: 0;
}

.cb-passkey-list-empty, .cb-passkey-list-loader-container {
.cb-passkey-list-empty,
.cb-passkey-list-loader-container {
border-bottom: 1px solid var(--cb-color-outline);
}

.cb-passkey-list-append-button {
font-weight: bold;
}

.cb-primary-button, .cb-secondary-button, .cb-outline-button {
.cb-primary-button,
.cb-secondary-button,
.cb-outline-button {
font-weight: bold;
}

Expand Down

0 comments on commit 9734e8e

Please sign in to comment.