From c8f680fdfb72c6881687b84170f7ba64a1bb4566 Mon Sep 17 00:00:00 2001 From: Kire Date: Wed, 17 Mar 2021 18:11:57 -0400 Subject: [PATCH] update for PR feedback --- phone/src/apps/twitter/components/TwitterApp.tsx | 4 ---- .../apps/twitter/components/profile/DefaultProfilePrompt.tsx | 5 +---- phone/src/apps/twitter/components/profile/ProfilePrompt.tsx | 1 - resources/server/sv_twitter.ts | 2 +- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/phone/src/apps/twitter/components/TwitterApp.tsx b/phone/src/apps/twitter/components/TwitterApp.tsx index a95722f..860b4b9 100644 --- a/phone/src/apps/twitter/components/TwitterApp.tsx +++ b/phone/src/apps/twitter/components/TwitterApp.tsx @@ -20,10 +20,6 @@ import { useProfile } from '../hooks/useProfile'; import ProfilePrompt from './profile/ProfilePrompt'; import InjectDebugData from '../../../os/debug/InjectDebugData'; 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(() => ({ backgroundModal: { diff --git a/phone/src/apps/twitter/components/profile/DefaultProfilePrompt.tsx b/phone/src/apps/twitter/components/profile/DefaultProfilePrompt.tsx index 0b4ecce..5dea5a7 100644 --- a/phone/src/apps/twitter/components/profile/DefaultProfilePrompt.tsx +++ b/phone/src/apps/twitter/components/profile/DefaultProfilePrompt.tsx @@ -1,13 +1,10 @@ -import React, { useState } from 'react'; +import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import InputLabel from '@material-ui/core/InputLabel'; -import MenuItem from '@material-ui/core/MenuItem'; import FormControl from '@material-ui/core/FormControl'; import Select from '@material-ui/core/Select'; import { useTranslation } from 'react-i18next'; -import Nui from '../../../../os/nui-events/utils/Nui'; -import { useProfile } from '../../hooks/useProfile'; import ProfileUpdateButton from '../buttons/ProfileUpdateButton'; interface IProps { diff --git a/phone/src/apps/twitter/components/profile/ProfilePrompt.tsx b/phone/src/apps/twitter/components/profile/ProfilePrompt.tsx index 27286b9..5d98dd1 100644 --- a/phone/src/apps/twitter/components/profile/ProfilePrompt.tsx +++ b/phone/src/apps/twitter/components/profile/ProfilePrompt.tsx @@ -9,7 +9,6 @@ import DefaultProfilePrompt from './DefaultProfilePrompt'; import ProfileUpdateButton from '../buttons/ProfileUpdateButton'; import { useRecoilValue } from 'recoil'; import { twitterState } from '../../hooks/state'; -import { useSettings } from '../../../settings/hooks/useSettings'; import { usePhone } from '../../../../os/phone/hooks/usePhone'; const useStyles = makeStyles((theme) => ({ diff --git a/resources/server/sv_twitter.ts b/resources/server/sv_twitter.ts index 221b0bd..f2f5271 100644 --- a/resources/server/sv_twitter.ts +++ b/resources/server/sv_twitter.ts @@ -330,7 +330,7 @@ onNet(events.TWITTER_GET_OR_CREATE_PROFILE, async () => { twitterLogger.error(`Failed to get or create profile, ${e.message}`, { source: _source, }); - emitNet(events.TWITTER_GET_OR_CREATE_PROFILE_FAILURE, _source, null); + emitNet(events.TWITTER_GET_OR_CREATE_PROFILE_FAILURE, _source); } });