working typescript compiling and fixing linting issues

This commit is contained in:
erik-sn committed 2020-10-11 13:59:25 -04:00
1 parent b1babd88c2
commit 3273d192c9
49 files changed
+271 -110

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import { atom } from "recoil";
export const twitterState = {
profile: atom({
key: "profile",
default: null,
default: {},
}),
tweets: atom({
key: "tweets",
+16 -1
View File
@@ -1,7 +1,22 @@
import { useRecoilValue, useRecoilState } from "recoil";
import { twitterState } from "./state";
export const useProfile = () => {
interface IProfile {
profile_name?: string;
bio?: string;
job?: string;
location?: string;
avatar_url?: string;
}
interface IUseProfile {
profile: IProfile;
updateProfileLoading: any;
updateProfileSuccessful: any;
setUpdateProfileSuccessful: any;
}
export const useProfile = (): IUseProfile => {
const profile = useRecoilValue(twitterState.profile);
const updateProfileLoading = useRecoilValue(
twitterState.updateProfileLoading
+1 -1
View File
@@ -1,4 +1,4 @@
import { useRecoilValue, useSetRecoilState } from "recoil";
import { useRecoilValue } from "recoil";
import { twitterState } from "./state";
export const useTweets = () => {