Skip to content

Commit

Permalink
Merge pull request #41 from DevlinRocha/code-cleanup
Browse files Browse the repository at this point in the history
Code cleanup
  • Loading branch information
DevlinRocha authored Sep 2, 2022
2 parents 3522e8d + 5f8d4d8 commit 7166e60
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/components/Members.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function Members() {
const { server, members, memberRoles, memberProfileCardOpen } =
useServersState();
const memberRef = useRef<HTMLLIElement[]>([]);
const memberListRef = useRef<HTMLUListElement>(null);
const [assignedRoles, setAssignedRoles] = useState<RoleListData[]>([]);
const [unassignedRoles, setUnassignedRoles] = useState<MemberData[]>([]);
const dispatch = useAppDispatch();
Expand Down
2 changes: 0 additions & 2 deletions src/features/addServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ export interface AddServerState {
| "Join Server"
| "About Server"
| "Customize Server";
loading: "idle" | "pending" | "succeeded" | "failed";
}

const initialState: AddServerState = {
addServerOpen: false,
addServerWindow: "Create Server",
loading: "idle",
};

export const addServerSlice = createSlice({
Expand Down
2 changes: 0 additions & 2 deletions src/features/sendGif.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import { useAppSelector } from "../redux/hooks";

export interface SendGifState {
sendGifOpen: boolean;
loading: "idle" | "pending" | "succeeded" | "failed";
}

const initialState: SendGifState = {
sendGifOpen: false,
loading: "idle",
};

export const sendGifSlice = createSlice({
Expand Down
2 changes: 0 additions & 2 deletions src/features/serverSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export interface ServerSettingsState {
assignRoleOpen: boolean;
assignRolePosition: PositionData;
assignRoleHeight: 256 | 78;
loading: "idle" | "pending" | "succeeded" | "failed";
}

const initialState: ServerSettingsState = {
Expand Down Expand Up @@ -47,7 +46,6 @@ const initialState: ServerSettingsState = {
assignRoleOpen: false,
assignRoleHeight: 78,
assignRolePosition: {},
loading: "idle",
};

export const userSettingsSlice = createSlice({
Expand Down
2 changes: 0 additions & 2 deletions src/features/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export interface ServersState {
viewMediaOpen: boolean;
viewMedia: MediaData;
serverIDs: string[];
loading: "idle" | "pending" | "succeeded" | "failed";
}

const initialState: ServersState = {
Expand Down Expand Up @@ -181,7 +180,6 @@ const initialState: ServersState = {
type: null,
},
serverIDs: [],
loading: "idle",
};

export const serversSlice = createSlice({
Expand Down
2 changes: 0 additions & 2 deletions src/features/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export interface UserData {
export interface UserState {
user: UserData;
avatarPreview?: File;
loading: "idle" | "pending" | "succeeded" | "failed";
}

const initialState: UserState = {
Expand All @@ -38,7 +37,6 @@ const initialState: UserState = {
},
// permissions: {},
},
loading: "idle",
};

export const userSlice = createSlice({
Expand Down
2 changes: 0 additions & 2 deletions src/features/userSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export interface UserSettingsState {
userChangesMade: boolean;
userCopy: UserData | null;
unsavedChangesError: boolean;
loading: "idle" | "pending" | "succeeded" | "failed";
}

const initialState: UserSettingsState = {
Expand All @@ -27,7 +26,6 @@ const initialState: UserSettingsState = {
userChangesMade: false,
userCopy: null,
unsavedChangesError: false,
loading: "idle",
};

export const userSettingsSlice = createSlice({
Expand Down

1 comment on commit 7166e60

@vercel
Copy link

@vercel vercel bot commented on 7166e60 Sep 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

banter – ./

banter-git-main-devlinrocha.vercel.app
banter-kappa.vercel.app
banter-devlinrocha.vercel.app

Please sign in to comment.