Fix auth modal story not rendering. Closes #2254
This commit is contained in:
@@ -15,22 +15,23 @@ import {
|
||||
} from '../../stores/ClientConfigStore';
|
||||
|
||||
export const AuthModal: FC = () => {
|
||||
const authenticated = useRecoilValue<boolean>(chatAuthenticatedAtom);
|
||||
const accessToken = useRecoilValue<string>(accessTokenAtom);
|
||||
const currentUser = useRecoilValue(currentUserAtom);
|
||||
if (!currentUser) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const authenticated = useRecoilValue<boolean>(chatAuthenticatedAtom);
|
||||
const accessToken = useRecoilValue<string>(accessTokenAtom);
|
||||
const federationEnabled = true;
|
||||
const { displayName } = currentUser;
|
||||
|
||||
const federationEnabled = true;
|
||||
|
||||
const indieAuthTabTitle = (
|
||||
<span className={styles.tabContent}>
|
||||
<img className={styles.icon} src={IndieAuthIcon.src} alt="IndieAuth" />
|
||||
IndieAuth
|
||||
</span>
|
||||
);
|
||||
|
||||
const indieAuthTab = (
|
||||
<IndieAuthModal
|
||||
authenticated={authenticated}
|
||||
@@ -45,6 +46,7 @@ export const AuthModal: FC = () => {
|
||||
FediAuth
|
||||
</span>
|
||||
);
|
||||
|
||||
const fediAuthTab = (
|
||||
<FediAuthModal
|
||||
authenticated={authenticated}
|
||||
|
||||
Reference in New Issue
Block a user