Update build info version and revise action sheet buttons
- Change bunny-build-info version to 1.1.8-2 - Refactor action sheet buttons in Plugins and Themes pages to use a single "Close" button with updated styling
This commit is contained in:
parent
0ad7a4ecfd
commit
f1778fe101
3 changed files with 14 additions and 24 deletions
|
|
@ -77,7 +77,7 @@ const config = {
|
|||
constModules: {
|
||||
globals: {
|
||||
"bunny-build-info": {
|
||||
version: `"1.1.8-1"`,
|
||||
version: `"1.1.8-2"`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -56,7 +56,10 @@ const {
|
|||
AlertActions: AlertActionsComponent,
|
||||
AlertActionButton,
|
||||
} = lazyDestructure(() => findByProps("AlertModal", "AlertActions"));
|
||||
const { showSimpleActionSheet, hideActionSheet } = lazyDestructure(() =>
|
||||
const { hideActionSheet } = lazyDestructure(() =>
|
||||
findByProps("openLazy", "hideActionSheet"),
|
||||
);
|
||||
const { showSimpleActionSheet } = lazyDestructure(() =>
|
||||
findByProps("showSimpleActionSheet"),
|
||||
);
|
||||
|
||||
|
|
@ -200,10 +203,10 @@ function InstallButton({
|
|||
The plugin has been added to your plugins list.
|
||||
</Text>
|
||||
<Button
|
||||
size="md"
|
||||
text="Open Plugin Settings"
|
||||
size="lg"
|
||||
text="Close"
|
||||
variant="primary"
|
||||
icon={findAssetId("SettingsIcon")}
|
||||
style={{ width: "100%" }}
|
||||
onPress={() => hideActionSheet()}
|
||||
/>
|
||||
</View>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,10 @@ import { View, Image } from "react-native";
|
|||
|
||||
const { useReducer } = React;
|
||||
|
||||
const { showSimpleActionSheet, hideActionSheet } = lazyDestructure(() =>
|
||||
const { hideActionSheet } = lazyDestructure(() =>
|
||||
findByProps("openLazy", "hideActionSheet"),
|
||||
);
|
||||
const { showSimpleActionSheet } = lazyDestructure(() =>
|
||||
findByProps("showSimpleActionSheet"),
|
||||
);
|
||||
|
||||
|
|
@ -143,17 +146,9 @@ function BrowserThemeCard({
|
|||
}}
|
||||
>
|
||||
<Button
|
||||
size="md"
|
||||
text="Cancel"
|
||||
variant="secondary"
|
||||
style={{ flex: 1 }}
|
||||
onPress={() => hideActionSheet()}
|
||||
/>
|
||||
<Button
|
||||
size="md"
|
||||
text="Open Settings"
|
||||
size="lg"
|
||||
text="Close"
|
||||
variant="primary"
|
||||
icon={findAssetId("ThemeLightIcon")}
|
||||
style={{ flex: 1 }}
|
||||
onPress={() => hideActionSheet()}
|
||||
/>
|
||||
|
|
@ -594,14 +589,6 @@ export default function Themes() {
|
|||
style={{ flex: 1 }}
|
||||
onPress={() => hideActionSheet()}
|
||||
/>
|
||||
<Button
|
||||
size="md"
|
||||
text="Open Settings"
|
||||
variant="primary"
|
||||
icon={findAssetId("CheckmarkIcon")}
|
||||
style={{ flex: 1 }}
|
||||
onPress={() => hideActionSheet()}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
</ActionSheet>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue