styling: Enforced styling across all files (#55)

This commit is contained in:
Taso authored and GitHub committed 2021-01-12 21:31:03 -05:00
1 parent c9b3174505
commit 54daa42454
165 files changed
+1879 -1725

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
import { atom } from "recoil";
import { atom } from 'recoil';
export const selloutState = {
listing: atom({
key: "listing",
key: 'listing',
default: [],
})
}),
};
+2 -2
View File
@@ -1,5 +1,5 @@
import { useRecoilValue } from "recoil";
import { selloutState } from "./state";
import { useRecoilValue } from 'recoil';
import { selloutState } from './state';
export const useListing = () => {
const listing = useRecoilValue(selloutState.listing);
@@ -1,10 +1,10 @@
import { useNuiEvent } from "../../../os/nui-events/hooks/useNuiEvent";
import { selloutState } from "./state";
import { useListing } from "./useListing";
import { useSetRecoilState } from "recoil";
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { selloutState } from './state';
import { useListing } from './useListing';
import { useSetRecoilState } from 'recoil';
export const useSelloutService = () => {
const setSellout = useSetRecoilState(selloutState.listing);
useNuiEvent("SELLOUT", "setListings", setSellout);
useNuiEvent('SELLOUT', 'setListings', setSellout);
return useListing();
};