update for PR feedback

This commit is contained in:
Kire committed 2021-03-22 10:37:10 -04:00
1 parent f3f055944c
commit c8f680fdfb
4 files changed
+2 -10

No files matched your search

@@ -20,10 +20,6 @@ import { useProfile } from '../hooks/useProfile';
import ProfilePrompt from './profile/ProfilePrompt'; import ProfilePrompt from './profile/ProfilePrompt';
import InjectDebugData from '../../../os/debug/InjectDebugData'; import InjectDebugData from '../../../os/debug/InjectDebugData';
import { TwitterThemeProvider } from '../providers/TwitterThemeProvider'; import { TwitterThemeProvider } from '../providers/TwitterThemeProvider';
import DefaultProfilePrompt from './profile/DefaultProfilePrompt';
import { useRecoilValue } from 'recoil';
import { twitterState } from '../hooks/state';
import { Profile } from '../../../../../typings/twitter';
const useStyles = makeStyles(() => ({ const useStyles = makeStyles(() => ({
backgroundModal: { backgroundModal: {
@@ -1,13 +1,10 @@
import React, { useState } from 'react'; import React from 'react';
import { makeStyles } from '@material-ui/core/styles'; import { makeStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel'; import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormControl'; import FormControl from '@material-ui/core/FormControl';
import Select from '@material-ui/core/Select'; import Select from '@material-ui/core/Select';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import Nui from '../../../../os/nui-events/utils/Nui';
import { useProfile } from '../../hooks/useProfile';
import ProfileUpdateButton from '../buttons/ProfileUpdateButton'; import ProfileUpdateButton from '../buttons/ProfileUpdateButton';
interface IProps { interface IProps {
@@ -9,7 +9,6 @@ import DefaultProfilePrompt from './DefaultProfilePrompt';
import ProfileUpdateButton from '../buttons/ProfileUpdateButton'; import ProfileUpdateButton from '../buttons/ProfileUpdateButton';
import { useRecoilValue } from 'recoil'; import { useRecoilValue } from 'recoil';
import { twitterState } from '../../hooks/state'; import { twitterState } from '../../hooks/state';
import { useSettings } from '../../../settings/hooks/useSettings';
import { usePhone } from '../../../../os/phone/hooks/usePhone'; import { usePhone } from '../../../../os/phone/hooks/usePhone';
const useStyles = makeStyles((theme) => ({ const useStyles = makeStyles((theme) => ({
+1 -1
View File
@@ -330,7 +330,7 @@ onNet(events.TWITTER_GET_OR_CREATE_PROFILE, async () => {
twitterLogger.error(`Failed to get or create profile, ${e.message}`, { twitterLogger.error(`Failed to get or create profile, ${e.message}`, {
source: _source, source: _source,
}); });
emitNet(events.TWITTER_GET_OR_CREATE_PROFILE_FAILURE, _source, null); emitNet(events.TWITTER_GET_OR_CREATE_PROFILE_FAILURE, _source);
} }
}); });