Skip to content

Commit

Permalink
Use component override
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Nov 8, 2023
1 parent 9477d2a commit 5c4713b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/scripts/components/stories/hub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
TAXONOMY_TOPICS
} from '$utils/veda-data';

import { ContentOverride } from '$components/common/page-overrides';
import { ComponentOverride } from '$components/common/page-overrides';

const allStories = Object.values(stories).map((d) => d!.data);

Expand Down Expand Up @@ -165,15 +165,15 @@ function StoriesHub() {
title={getString('stories').other}
description={getString('storiesBanner').other}
/>
<ContentOverride with='storiesHubHero'>
<ComponentOverride with='storiesHubHero'>
<PageHero
title={getString('stories').other}
description={getString('storiesBanner').other}
/>
</ContentOverride>
</ComponentOverride>
<FeaturedStories />

<ContentOverride with='storiesHubContent'>
<ComponentOverride with='storiesHubContent'>
<Fold>
<BrowseFoldHeader
ref={browseControlsHeaderRef}
Expand Down Expand Up @@ -309,7 +309,7 @@ function StoriesHub() {
</EmptyHub>
)}
</Fold>
</ContentOverride>
</ComponentOverride>
</PageMainContent>
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/utils/routes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DatasetData, StoryData } from 'veda';

export const ABOUT_PATH = '/about';
export const STORIES_PATH = `/stories`;
export const STORIES_PATH = '/stories';
export const DATASETS_PATH = '/data-catalog';
export const ANALYSIS_PATH = '/analysis';
export const ANALYSIS_RESULTS_PATH = '/analysis/results';
Expand Down

0 comments on commit 5c4713b

Please sign in to comment.