Skip to content
Open
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
1 change: 1 addition & 0 deletions src/app/common/constants/frontend-routes.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const FRONTEND_ROUTES = {
TEAM: '/admin-panel/team',
ANALYTICS: '/admin-panel/analytics',
NEWS: '/admin-panel/news',
CHRONOLOGY: '/admin-panel/chronology',
},
OTHER_PAGES: {
CATALOG: '/catalog',
Expand Down
5 changes: 5 additions & 0 deletions src/app/router/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import PartnersPage from '@/features/AdditionalPages/PartnersPage/Partners.compo
import AdminPage from '@/features/AdminPage/AdminPage.component';
import Partners from '@/features/AdminPage/PartnersPage/Partners.component';
import TeamPage from '@/features/AdminPage/TeamPage/TeamPage.component';
import ChronologyPage from '@/features/AdminPage/ChronologyPage/ChronologyPage.component';
import StreetcodeCatalog from '@/features/StreetcodeCatalogPage/StreetcodeCatalog.component';
import NewsPage from '@/features/AdditionalPages/NewsPage/News.component';
import ContactUs from '@/features/AdditionalPages/ContactUsPage/ContanctUs.component';
Expand Down Expand Up @@ -41,6 +42,10 @@ const router = createBrowserRouter(createRoutesFromElements(
<TeamPage />
)}
/>
<Route
path={FRONTEND_ROUTES.ADMIN.CHRONOLOGY}
element={<ChronologyPage />}
/>
<Route path="*" element={<NotFound />} />
<Route path={FRONTEND_ROUTES.OTHER_PAGES.PARTNERS} element={<PartnersPage />} />
<Route path={FRONTEND_ROUTES.OTHER_PAGES.CONTACT_US} element={<ContactUs />} />
Expand Down
7 changes: 7 additions & 0 deletions src/app/stores/timeline-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ export default class TimelineStore {
} catch (error: unknown) { /* empty */ }
};

public fetchAllTimelineItems = async () => {
try {
const timelineItems = await timelineApi.getAll();
this.setInternalMap(timelineItems);
} catch (error: unknown) { /* empty */ }
};

public createTimelineItem = async (timelineItem: TimelineItem) => {
try {
await timelineApi.create(timelineItem);
Expand Down
1 change: 1 addition & 0 deletions src/features/AdminPage/AdminBar.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const AdminBar = () => (
<Link className="Link" to={FRONTEND_ROUTES.ADMIN.FOR_FANS}>Для фанів</Link>
<Link className="Link" to={FRONTEND_ROUTES.ADMIN.PARTNERS}>Партнери</Link>
<Link className="Link" to={FRONTEND_ROUTES.ADMIN.TEAM}>Команда</Link>
<Link className="Link" to={FRONTEND_ROUTES.ADMIN.CHRONOLOGY}>Хронологія</Link>
</div>
);

Expand Down
Loading
Loading