Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit e1273c3

Browse files
fix: corrected naming
1 parent 2d1c829 commit e1273c3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/renderer/components/Uses/Uses.tsx renamed to src/renderer/components/CodeCount/CodeCount.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Flex, Text } from '@chakra-ui/react';
22
import { CodeIcon } from '@codiga/components';
33

4-
type UsesProps = {
4+
type CodeCountProps = {
55
count?: number;
66
};
77

8-
export default function Uses({ count = 0 }: UsesProps) {
8+
export default function CodeCount({ count = 0 }: CodeCountProps) {
99
return (
1010
<Flex alignItems="center" gap="space_8">
1111
<CodeIcon />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './CodeCount';

src/renderer/components/CookbookTable/CookbookTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import FavoriteCookbook from '../Favorite/FavoriteCookbook';
1919
import PrivacyAndVotes from '../PrivacyAndVotes';
2020
import FormattedDate from '../FormattedDate';
2121
import AvatarAndName from '../AvatarAndName';
22-
import Uses from '../Uses';
22+
import CodeCount from '../CodeCount';
2323

2424
const Td = (props: TableCellProps) => (
2525
<ChakraTd
@@ -121,7 +121,7 @@ export default function CookbookTable({ cookbooks, page }: CookbookTableProps) {
121121
</Td>
122122

123123
<Td>
124-
<Uses count={cookbook?.recipesCount} />
124+
<CodeCount count={cookbook?.recipesCount} />
125125
</Td>
126126

127127
<Td>

src/renderer/components/Uses/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)