Skip to content

Commit

Permalink
rename webviewcontainer to contentcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosentino11 committed Sep 2, 2024
1 parent ce49e35 commit 395fc05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function HackerNewsPageDetail() {

const renderContent = () => {
const emptyContent = (
<View style={[styles.webViewContainer, { borderColor: subtitleColor}]}>
<View style={[styles.contentContainer, { borderColor: subtitleColor}]}>
</View>
);

Expand All @@ -86,7 +86,7 @@ export default function HackerNewsPageDetail() {

if (settingsContext.selectedBrowser == 'In App') {
return (
<View style={[styles.webViewContainer, {borderColor: subtitleColor}]}>
<View style={[styles.contentContainer, {borderColor: subtitleColor}]}>
<WebView
ref={webViewRef}
source={{ uri: urlStr }}
Expand All @@ -103,7 +103,7 @@ export default function HackerNewsPageDetail() {
}
if (settingsContext.selectedBrowser == 'Default') {
return (
<View style={[styles.webViewContainer, {paddingTop: '60%', borderColor: subtitleColor}]}>
<View style={[styles.contentContainer, {paddingTop: '60%', borderColor: subtitleColor}]}>
<Button title="Open in Default Browser" onPress={() => Linking.openURL(urlStr)} />
</View>
);
Expand Down Expand Up @@ -147,7 +147,7 @@ const styles = StyleSheet.create({
container: {
flex: 1,
},
webViewContainer: {
contentContainer: {
flex: 1,
margin: 16,
borderRadius: 8,
Expand Down

0 comments on commit 395fc05

Please sign in to comment.