mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-08 04:40:20 +00:00
Refactoring a lot of the user items to use the USER data from the API, as it keeps a very similar structure to module.
This commit is contained in:
1 parent
07e04884af
commit
3b246c721f
2 files changed
+2
-2
No files matched your search
@@ -20,7 +20,7 @@ export const App = () => {
|
|||||||
return (
|
return (
|
||||||
<NavigationContainer>
|
<NavigationContainer>
|
||||||
<Stack.Navigator
|
<Stack.Navigator
|
||||||
initialRouteName='ModuleListScreen'
|
initialRouteName='UserListScreen'
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
headerStyle: {backgroundColor: "black"},
|
headerStyle: {backgroundColor: "black"},
|
||||||
headerTintColor: "white"
|
headerTintColor: "white"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const UserListScreen = ({ navigation }) => {
|
|||||||
|
|
||||||
// View -----------------------
|
// View -----------------------
|
||||||
return (
|
return (
|
||||||
<Screen drawer={<Drawer onSwitch={handleSwitchToModules} currentView="users" />}>
|
<Screen>
|
||||||
<ButtonTray>
|
<ButtonTray>
|
||||||
<Button label='Add' icon={<Icons.Add />} onClick={goToAddScreen} />
|
<Button label='Add' icon={<Icons.Add />} onClick={goToAddScreen} />
|
||||||
</ButtonTray>
|
</ButtonTray>
|
||||||
|
|||||||
Reference in new issue
Block a user