Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app): rename visiting speakers to speakers catalog #2259

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions src/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export { default as PersonsSearch } from './persons/search';
export { default as PersonTimeAway } from './persons/time_away';
export { default as PersonAssignmentsHistory } from './persons/assignments_history';

/* -------------------------------- Visiting Speakers -------------------------------- */
export { default as IncomingSpeakers } from './persons/visiting_speakers/incoming';
export { default as OutgoingSpeakers } from './persons/visiting_speakers/outgoing';
/* -------------------------------- Speakers Catalog -------------------------------- */
export { default as IncomingSpeakers } from './persons/speakers_catalog/incoming';
export { default as OutgoingSpeakers } from './persons/speakers_catalog/outgoing';

/* -------------------------------- Ministry -------------------------------- */
export { default as ButtonSubmitApplication } from './ministry/button_submit';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import useEdit from './useEdit';
import AutocompleteMultiple from '@components/autocomplete_multiple';
import Button from '@components/button';
import MiniChip from '@components/mini_chip';
import PopupSongAdd from '@features/persons/visiting_speakers/song_add_popup';
import PopupSongAdd from '@features/persons/speakers_catalog/song_add_popup';
import Radio from '@components/radio';
import SpeakerDetails from '@features/persons/visiting_speakers/speaker_details';
import SpeakerDetails from '@features/persons/speakers_catalog/speaker_details';
import TextField from '@components/textfield';
import Typography from '@components/typography';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import AutocompleteMultiple from '@components/autocomplete_multiple';
import Button from '@components/button';
import MenuItem from '@components/menuitem';
import MiniChip from '@components/mini_chip';
import PopupSongAdd from '@features/persons/visiting_speakers/song_add_popup';
import PopupSongAdd from '@features/persons/speakers_catalog/song_add_popup';
import Select from '@components/select';
import SpeakerDetails from '@features/persons/visiting_speakers/speaker_details';
import SpeakerDetails from '@features/persons/speakers_catalog/speaker_details';
import Typography from '@components/typography';
import { buildPersonFullname } from '@utils/common';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { buildPersonFullname } from '@utils/common';
import { SpeakerReadOnlyViewType } from './index.types';
import useSpeakerRowView from './useSpeakerRowView';
import Button from '@components/button';
import SpeakerDetails from '@features/persons/visiting_speakers/speaker_details';
import SpeakerDetails from '@features/persons/speakers_catalog/speaker_details';
import Typography from '@components/typography';

const SpeakerRowView = ({ speaker }: SpeakerReadOnlyViewType) => {
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;
Loading