Skip to content

Commit

Permalink
Auth Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfkid200444 committed Mar 7, 2024
1 parent 4736cf8 commit 88e4ccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/ReviewsView.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { webpack } from "replugged";
import { React, users } from "replugged/common";
import { FormText } from "replugged/components";
import { reviewDBSettings } from "../utils";
import { REVIEWS_PER_PAGE, getReviews } from "../reviewDBApi";
import { reviewDBSettings, showToast } from "../utils";
import { REVIEWS_PER_PAGE, addReview, getReviews } from "../reviewDBApi";
import ReviewComponent from "./ReviewComponent";
import { Auth } from "../auth";
import { Auth, authorize } from "../auth";


const { Editor, Transforms } = webpack.getByProps("Editor", "Transforms");
Expand Down
5 changes: 2 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ const { showToast: toast, ToastType, ToastPosition } = webpack.getByProps(["crea
export const defaultSettings = {};
export const reviewDBSettings = await settings.init("dev.wolfplugs.reviewdb", defaultSettings);


export function showToast(message: string, type = ToastType.MESSAGE) {

toast({
id: toast.genId(),
message,
type,
options: {
position: ToastPosition.BOTTOM, // NOBODY LIKES TOASTS AT THE TOP
position: ToastPosition.BOTTOM,
},
});
}
Expand Down

0 comments on commit 88e4ccc

Please sign in to comment.