|
1 | 1 | import { toast } from "@common";
|
2 | 2 | import i18n, { Messages } from "@common/i18n";
|
3 | 3 | import React from "@common/react";
|
4 |
| -import { Button, Divider, Flex, SliderItem, SwitchItem, Text, Tooltip } from "@components"; |
| 4 | +import { Button, Divider, Flex, Notice, SliderItem, SwitchItem, Text, Tooltip } from "@components"; |
5 | 5 | import { Logger } from "@replugged";
|
6 | 6 | import { plugins } from "src/renderer/managers/plugins";
|
7 | 7 | import { themes } from "src/renderer/managers/themes";
|
@@ -60,6 +60,7 @@ export const Updater = (): React.ReactElement => {
|
60 | 60 | const isAnyUpdating = hasAnyUpdates && updatesAvailable.some((u) => u.id in updatePromises);
|
61 | 61 | const isAllComplete = hasAnyUpdates && updatesAvailable.every((u) => !u.available);
|
62 | 62 | const isAnyComplete = hasAnyUpdates && updatesAvailable.some((u) => !u.available);
|
| 63 | + const isRepluggedDev = window.RepluggedNative.getVersion() === "dev"; |
63 | 64 |
|
64 | 65 | const checkForUpdates = async (): Promise<void> => {
|
65 | 66 | const previousUpdates = getAvailableUpdates();
|
@@ -137,6 +138,15 @@ export const Updater = (): React.ReactElement => {
|
137 | 138 | stickToMarkers={true}>
|
138 | 139 | {Messages.REPLUGGED_UPDATES_OPTS_INTERVAL}
|
139 | 140 | </SliderItem>
|
| 141 | + {isRepluggedDev && ( |
| 142 | + <div style={{ marginBottom: "16px" }}> |
| 143 | + <Notice messageType={Notice.Types.WARNING}> |
| 144 | + {Messages.REPLUGGED_DEVELOPER_MODE_WARNING.format({ |
| 145 | + url: "https://replugged.dev/download", |
| 146 | + })} |
| 147 | + </Notice> |
| 148 | + </div> |
| 149 | + )} |
140 | 150 | <Flex
|
141 | 151 | justify={Flex.Justify.BETWEEN}
|
142 | 152 | align={Flex.Align.CENTER}
|
|
0 commit comments