[UI > QuickInstall] Please the Beef (#68)
This commit is contained in:
parent
ea775736a2
commit
f66e62d13b
2 changed files with 4 additions and 4 deletions
|
@ -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 { DISCORD_SERVER_ID, PLUGINS_CHANNEL_ID, THEMES_CHANNEL_ID, HTTP_REGEX_MULTI, PROXY_PREFIX } from "@lib/constants";
|
||||
import { after } from "@lib/patcher";
|
||||
import { installPlugin } from "@lib/plugins";
|
||||
import { installTheme } from "@lib/themes";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { PROXY_PREFIX, THEMES_CHANNEL_ID } from "@lib/constants";
|
||||
import { findByProps } from "@metro/filters";
|
||||
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 { installPlugin } from "@lib/plugins";
|
||||
import { installTheme } from "@lib/themes";
|
||||
import { showConfirmationAlert } from "@ui/alerts";
|
||||
import { getAssetIDByName } from "@ui/assets";
|
||||
import { showToast } from "@ui/toasts";
|
||||
import { showConfirmationAlert } from "../alerts";
|
||||
|
||||
const showSimpleActionSheet = findByProps("showSimpleActionSheet");
|
||||
const handleClick = findByProps("handleClick");
|
||||
|
@ -60,7 +60,7 @@ export default () => {
|
|||
|
||||
showConfirmationAlert({
|
||||
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),
|
||||
confirmText: "Install",
|
||||
cancelText: "Cancel",
|
||||
|
|
Loading…
Reference in a new issue