Skip to content

Commit 14d83a6

Browse files
committed
Updated edit church to go straight into edit mode
1 parent a2dee50 commit 14d83a6

4 files changed

Lines changed: 4 additions & 81 deletions

File tree

src/settings/ManageChurch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { type ChurchInterface, ApiHelper, UserHelper, Permissions, Locale } from
33
import { Navigate } from "react-router-dom";
44
import { Box, Typography, Stack, Button, IconButton } from "@mui/material";
55
import { Settings as SettingsIcon, Lock as LockIcon, PlayArrow as PlayArrowIcon, Language as LanguageIcon, LocationOn as LocationOnIcon, Edit as EditIcon } from "@mui/icons-material";
6-
import { RolesTab, ChurchSettings } from "./components";
6+
import { RolesTab, ChurchSettingsEdit } from "./components";
77

88
export const ManageChurch = () => {
99
const [selectedTab, setSelectedTab] = React.useState("roles");
@@ -189,7 +189,7 @@ export const ManageChurch = () => {
189189
{/* Church Settings Modal/Component */}
190190
{showChurchSettings && (
191191
<Box sx={{ p: 3 }}>
192-
<ChurchSettings church={church} updatedFunction={() => { loadData(); setShowChurchSettings(false); }} />
192+
<ChurchSettingsEdit church={church} updatedFunction={() => { loadData(); setShowChurchSettings(false); }} />
193193
</Box>
194194
)}
195195
</>

src/settings/components/ChurchSettings.tsx

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/settings/components/ChurchSettingsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from "react";
2-
import { ChurchSettings } from "./";
2+
import { ChurchSettingsEdit } from "./";
33
import { type ChurchInterface, ApiHelper, UserHelper, Permissions } from "@churchapps/apphelper";
44
import { Navigate } from "react-router-dom";
55

@@ -20,7 +20,7 @@ export const ChurchSettingsTab = () => {
2020
else {
2121
return (
2222
<>
23-
<ChurchSettings church={church} updatedFunction={loadData} />
23+
<ChurchSettingsEdit church={church} updatedFunction={loadData} />
2424
</>
2525
);
2626
}

src/settings/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from "../../components";
2-
export { ChurchSettings } from "./ChurchSettings";
32
export { ChurchSettingsEdit } from "./ChurchSettingsEdit";
43

54
export { RoleEdit } from "./RoleEdit";

0 commit comments

Comments
 (0)