Skip to content

Commit

Permalink
Relocate useAuthState to hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalcom committed Feb 12, 2024
1 parent 753bb32 commit 57e293b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import { useNavigate, useSearchParams } from 'react-router-dom';
import styled from 'styled-components';
import * as yup from 'yup';

import { getAuthState } from '../../hooks/useAuthState';
import useFirebaseUser from '../../hooks/useFirebaseUser';
import useIframeDialogConfig from '../../hooks/useIframeDialogConfig';
import WalletSvg from '../../Images/WalletSvg';
import { Button } from '../../lib/Button';
import FirestoreController from '../../lib/firestoreController';
import Input from '../../lib/Input/Input';
import { openToast } from '../../lib/Toast';
import { getAuthState } from '../../lib/useAuthState';
import {
decodeIfTruthy, inIframe, isUrlNotJavascriptProtocol, safeGetLocalStorage
} from '../../utils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
import { useNavigate } from 'react-router';

import AuthIndicatorButton from './AuthIndicatorButton';
import { useAuthState } from '../../lib/useAuthState';
import { useAuthState } from '../../hooks/useAuthState';

function AuthIndicator() {
const { authenticated } = useAuthState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import {
} from './Values/fiatValueManager';
import { formatNearAmount } from './Values/formatNearAmount';
import fiatValuesStore from './Values/store';
import { useAuthState } from '../../hooks/useAuthState';
import useIframeDialogConfig from '../../hooks/useIframeDialogConfig';
import ArrowDownSvg from '../../Images/arrow-down';
import ArrowUpSvg from '../../Images/arrow-up';
import InternetSvg from '../../Images/Internet';
import { Button } from '../../lib/Button';
import { useAuthState } from '../../lib/useAuthState';
import { isUrlNotJavascriptProtocol, redirectWithError } from '../../utils';
import { basePath, network } from '../../utils/config';
import TableContent from '../TableContent/TableContent';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { captureException } from '@sentry/react';
import { useEffect, useState } from 'react';
import { useSearchParams } from 'react-router-dom/dist';

import FastAuthController from './controller';
import { fetchAccountIds } from '../api';
import FastAuthController from '../lib/controller';
import { safeGetLocalStorage } from '../utils';
import { networkId } from '../utils/config';
import { checkFirestoreReady, firebaseAuth } from '../utils/firebase';
Expand Down

0 comments on commit 57e293b

Please sign in to comment.