Skip to content

Commit

Permalink
fix(pages): rename visiting speakers to speakers catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Aug 7, 2024
1 parent f90156d commit 96420ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ServiceYear = lazy(() => import('@pages/ministry/service_year'));
const AuxiliaryPioneerApplication = lazy(
() => import('@pages/ministry/auxiliary_pioneer')
);
const VisitingSpeakers = lazy(() => import('@pages/persons/visiting_speakers'));
const SpeakersCatalog = lazy(() => import('@pages/persons/speakers_catalog'));
const WeekendMeeting = lazy(() => import('@pages/meetings/weekend'));
const ServiceGroups = lazy(() => import('@pages/congregation/service_groups'));
const PublisherRecord = lazy(
Expand Down Expand Up @@ -84,7 +84,7 @@ const App = ({ updatePwa }: { updatePwa: VoidFunction }) => {
path: '/auxiliary-pioneer-application',
element: <AuxiliaryPioneerApplication />,
},
{ path: '/visiting-speakers', element: <VisitingSpeakers /> },
{ path: '/speakers-catalog', element: <SpeakersCatalog /> },
{ path: '/midweek-meeting', element: <MidweekMeeting /> },
{ path: '/weekend-meeting', element: <WeekendMeeting /> },
{ path: '/service-groups', element: <ServiceGroups /> },
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/persons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const PersonsCard = () => {
<DashboardMenu
icon={<IconVisitingSpeaker color="var(--black)" />}
primaryText={t('tr_speakersCatalog')}
path="/visiting-speakers"
path="/speakers-catalog"
/>
</ListItem>
</DashboardCard>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { IconAdd } from '@components/icons';
import { Button, PageTitle } from '@components/index';
import { useAppTranslation, useBreakpoints } from '@hooks/index';
import { IncomingSpeakers, OutgoingSpeakers } from '@features/index';
import useVisitingSpeakers from './useVisitingSpeakers';
import useSpeakersCatalog from './useSpeakersCatalog';

const VisitingSpeakers = () => {
const SpeakersCatalog = () => {
const { t } = useAppTranslation();

const { desktopUp } = useBreakpoints();

const { handleIsAddingOpen } = useVisitingSpeakers();
const { handleIsAddingOpen } = useSpeakersCatalog();

return (
<Box sx={{ display: 'flex', gap: '16px', flexDirection: 'column' }}>
<PageTitle
title={t('tr_visitingSpeakers')}
title={t('tr_speakersCatalog')}
buttons={
<Button
variant="main"
Expand Down Expand Up @@ -44,4 +44,4 @@ const VisitingSpeakers = () => {
);
};

export default VisitingSpeakers;
export default SpeakersCatalog;
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useSetRecoilState } from 'recoil';
import { isAddingCongregationState } from '@states/speakers_congregations';

const useVisitingSpeakers = () => {
const useSpeakersCatalog = () => {
const setIsAdding = useSetRecoilState(isAddingCongregationState);

const handleIsAddingOpen = () => setIsAdding(true);

return { handleIsAddingOpen };
};

export default useVisitingSpeakers;
export default useSpeakersCatalog;

0 comments on commit 96420ea

Please sign in to comment.