Skip to content

Commit

Permalink
refactor: clean up code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
redbeard0091 committed Jul 23, 2024
1 parent 27b9aaa commit 758206f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/components/ChangelogList/ChangelogList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
import { useUpdateHiveContext } from '../ChangelogContext';
import { ChangeType } from '../../changelog.types.ts';
import { ChangeTypeMap, getTypeColor } from '../changelog.util.ts';
import ComponentList from './ComponentList.tsx';
import SimpleList from './SimpleList.tsx';
import ComponentList from './_internal/ComponentList.tsx';
import SimpleList from './_internal/SimpleList.tsx';
import { GroupBy } from './ChangelogList.types.ts';

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion lib/components/ChangelogList/MinimalChangelogList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { useUpdateHiveContext } from '../ChangelogContext';
import { ChangeTypeMap } from '../changelog.util.ts';
import { ChangeType } from '../../changelog.types.ts';
import SimpleList from './SimpleList.tsx';
import SimpleList from './_internal/SimpleList.tsx';

interface Props {
changeTypeMapper?: Record<ChangeType, string>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Box, List, ListItem, Typography } from '@mui/joy';
import * as React from 'react';
import { Changelog, ChangeType } from '../../changelog.types.ts';
import { Changelog, ChangeType } from '../../../changelog.types.ts';
import { useMemo } from 'react';
import {
ChangelogWithComponents,
groupChangelogsByComponents,
reorderChangelogs,
} from '../changelog.util.ts';
} from '../../changelog.util.ts';

interface Props {
changelogs: Changelog[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Changelog, ChangeType } from '../../changelog.types.ts';
import { Changelog, ChangeType } from '../../../changelog.types.ts';
import { Box, List, ListItem, Typography } from '@mui/joy';
import { reorderChangelogs } from '../changelog.util.ts';
import { reorderChangelogs } from '../../changelog.util.ts';
import { useMemo } from 'react';

interface Props {
Expand Down

0 comments on commit 758206f

Please sign in to comment.