Skip to content

Commit

Permalink
minor changes: File name changes and typescript returns
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarah committed Dec 13, 2024
1 parent 565cc45 commit ed7f882
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/researcher/src/app/[locale]/research-guide/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Link} from '@/navigation';
import {ChevronRightIcon} from '@heroicons/react/24/solid';
import {getLocale, getTranslations} from 'next-intl/server';
import StringToMarkdown from './string-to-markdown';
import {sortResearchGuide} from '@/app/[locale]/research-guide/sortGuides';
import {sortResearchGuide} from '@/app/[locale]/research-guide/sort-guides';

export default async function Page() {
const locale = (await getLocale()) as LocaleEnum;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ResearchGuide} from '@colonial-collections/api';
import {sortResearchGuide} from './sortGuides';
import {sortResearchGuide} from './sort-guides';

describe('sortResearchGuide', () => {
it('sorts guides by their names', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ResearchGuide} from '@colonial-collections/api';

export function sortResearchGuide(topLevel: ResearchGuide): ResearchGuide {
export function sortResearchGuide(topLevel: ResearchGuide) {
const sortGuides = (guide: ResearchGuide): ResearchGuide => {
const sortedParts =
guide.hasParts?.sort((a, b) =>
Expand Down

0 comments on commit ed7f882

Please sign in to comment.