Skip to content

Commit

Permalink
fix: restore compatibility of plugins that have custom pages
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs authored and PalmDevs committed Feb 9, 2024
1 parent 094ff7c commit f2916d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ui/settings/components/PluginCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function PluginCard({ item: plugin, index }: CardWrapper<Plugin>)
actions={[
...(settings ? [{
icon: "settings",
onPress: () => navigation.push("RevengeCustomPage", {
onPress: () => navigation.push("VendettaCustomPage", {
title: plugin.manifest.name,
render: settings,
})
Expand Down
2 changes: 1 addition & 1 deletion src/ui/settings/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const getScreens = (youKeys = false): Screen[] => [
render: Developer,
},
{
key: formatKey("RevengeCustomPage", youKeys),
key: formatKey("VendettaCustomPage", youKeys),
title: "Revenge Page",
shouldRender: () => false,
render: ({ render: PageView, noErrorBoundary, ...options }: { render: React.ComponentType; noErrorBoundary: boolean } & Record<string, object>) => {
Expand Down
6 changes: 3 additions & 3 deletions src/ui/settings/pages/Developer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Developer() {
label="Asset Browser"
leading={<FormRow.Icon source={getAssetIDByName("ic_image")} />}
trailing={FormRow.Arrow}
onPress={() => navigation.push("RevengeCustomPage", {
onPress={() => navigation.push("VendettaCustomPage", {
title: "Asset Browser",
render: AssetBrowser,
})}
Expand All @@ -100,8 +100,8 @@ export default function Developer() {
options: [
// @ts-expect-error
// Of course, to trigger an error, we need to do something incorrectly. The below will do!
{ label: "Revenge", onPress: () => navigation.push("RevengeCustomPage", { render: () => <undefined /> }) },
{ label: "Discord", isDestructive: true, onPress: () => navigation.push("RevengeCustomPage", { noErrorBoundary: true }) },
{ label: "Revenge", onPress: () => navigation.push("VendettaCustomPage", { render: () => <undefined /> }) },
{ label: "Discord", isDestructive: true, onPress: () => navigation.push("VendettaCustomPage", { noErrorBoundary: true }) },
],
})}
/>
Expand Down

0 comments on commit f2916d4

Please sign in to comment.