[UI > QuickInstall] Please the Beef (#68)

This commit is contained in:
redstonekasi 2023-04-23 02:43:34 +02:00 committed by GitHub
parent ea775736a2
commit f66e62d13b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { DISCORD_SERVER_ID, PLUGINS_CHANNEL_ID, THEMES_CHANNEL_ID, HTTP_REGEX_MULTI, PROXY_PREFIX } from "@lib/constants";
import { findByName, findByProps } from "@metro/filters"; import { findByName, findByProps } from "@metro/filters";
import { DISCORD_SERVER_ID, PLUGINS_CHANNEL_ID, THEMES_CHANNEL_ID, HTTP_REGEX_MULTI, PROXY_PREFIX } from "@lib/constants";
import { after } from "@lib/patcher"; import { after } from "@lib/patcher";
import { installPlugin } from "@lib/plugins"; import { installPlugin } from "@lib/plugins";
import { installTheme } from "@lib/themes"; import { installTheme } from "@lib/themes";

View file

@ -1,12 +1,12 @@
import { PROXY_PREFIX, THEMES_CHANNEL_ID } from "@lib/constants";
import { findByProps } from "@metro/filters"; import { findByProps } from "@metro/filters";
import { ReactNative as RN, channels, url } from "@metro/common"; import { ReactNative as RN, channels, url } from "@metro/common";
import { PROXY_PREFIX, THEMES_CHANNEL_ID } from "@lib/constants";
import { after, instead } from "@lib/patcher"; import { after, instead } from "@lib/patcher";
import { installPlugin } from "@lib/plugins"; import { installPlugin } from "@lib/plugins";
import { installTheme } from "@lib/themes"; import { installTheme } from "@lib/themes";
import { showConfirmationAlert } from "@ui/alerts";
import { getAssetIDByName } from "@ui/assets"; import { getAssetIDByName } from "@ui/assets";
import { showToast } from "@ui/toasts"; import { showToast } from "@ui/toasts";
import { showConfirmationAlert } from "../alerts";
const showSimpleActionSheet = findByProps("showSimpleActionSheet"); const showSimpleActionSheet = findByProps("showSimpleActionSheet");
const handleClick = findByProps("handleClick"); const handleClick = findByProps("handleClick");
@ -60,7 +60,7 @@ export default () => {
showConfirmationAlert({ showConfirmationAlert({
title: "Hold Up", title: "Hold Up",
content: [`This link is a `, <RN.Text style={TextStyleSheet["text-md/semibold"]}>{urlType}</RN.Text>, `, would you like to install it?`], content: ["This link is a ", <RN.Text style={TextStyleSheet["text-md/semibold"]}>{urlType}</RN.Text>, ", would you like to install it?"],
onConfirm: () => installWithToast(urlType, url), onConfirm: () => installWithToast(urlType, url),
confirmText: "Install", confirmText: "Install",
cancelText: "Cancel", cancelText: "Cancel",