Skip to content

Commit

Permalink
♻️ Rename ListPage to DividerPage in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
sGeeK44 committed Aug 10, 2023
1 parent 96c0468 commit e676832
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { PlusMinusInputPage } from './PlusMinusInput/PlusMinusInputPage';
import { TabPage } from './Tab/TabPage';
import { LabelPage } from './Label/LabelPage';
import { ProductPage } from './Product/ProductPage';
import { ListPage } from './ListPage/ListPage';
import { DividerPage } from './DividerPage/DividerPage';
import { TopAppBarPage } from './TopAppBarPage/TopAppBarPage';

export type RootStackParamList = {
Expand All @@ -48,7 +48,7 @@ export type RootStackParamList = {
Tab: undefined;
Label: undefined;
ProductPage: undefined;
ListPage: undefined;
DividerPage: undefined;
TopAppBarPage: undefined;
};

Expand Down Expand Up @@ -97,7 +97,7 @@ const App = () => {
<Stack.Screen name="Tab" component={TabPage} />
<Stack.Screen name="Label" component={LabelPage} />
<Stack.Screen name="ProductPage" component={ProductPage} />
<Stack.Screen name="ListPage" component={ListPage} />
<Stack.Screen name="DividerPage" component={DividerPage} />
<Stack.Screen name="TopAppBarPage" component={TopAppBarPage} />
</Stack.Navigator>
</NavigationContainer>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState } from 'react';
import { StyleSheet, Switch, Text, View } from 'react-native';
import { Body, Divider, PlusMinusInput, QuantityField, Screen } from 'smartway-react-native-ui';
import { StyleSheet, Switch, View } from 'react-native';
import { Body, Divider, PlusMinusInput, Screen } from 'smartway-react-native-ui';

export const ListPage = () => {
export const DividerPage = () => {
const [marginTopOrLeft, setMarginTopOrLeft] = useState<number>(10);
const [marginBottomOrRight, setMarginBottomOrRight] = useState<number>(10);
const [dashed, setDashed] = useState<boolean>(false);
Expand Down
4 changes: 2 additions & 2 deletions example/src/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ export const HomeScreen = ({ navigation }: Props) => {
<Button
style={styles.button}
onPress={() => {
navigation.navigate('ListPage');
navigation.navigate('DividerPage');
}}
>
List
Divider
</Button>
<Button
style={styles.button}
Expand Down

0 comments on commit e676832

Please sign in to comment.