Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
refactor: shared
Browse files Browse the repository at this point in the history
  • Loading branch information
ko22009 committed Dec 7, 2023
1 parent 114ac59 commit 56699c3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/entities/project/contacts/Contacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generatePath } from 'react-router-dom';

import { useApi, useAuth } from '~/shared/hooks';
import { PATHS } from '~/shared/lib/router';
import { Rating } from '~/shared/ui/rating';
import { Rating } from '~/shared/ui/Rating';
import { SLink } from '~/shared/ui/SLink';

import { useGetUser } from '../api';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/profile/ProfilePage.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ProjectCard } from '~/widgets/project-card';
import { AvatarsGroup } from '~/entities/project';
import { Reviews } from '~/entities/user';

import { Rating } from '~/shared/ui/rating';
import { Rating } from '~/shared/ui/Rating';
import { STag } from '~/shared/ui/STag';

export function ProfilePageDesktop() {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/profile/tabs/reviews/Reviews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Stack, Text } from '@chakra-ui/react';

import { Reviews } from '~/entities/user';

import { Rating } from '~/shared/ui/rating';
import { Rating } from '~/shared/ui/Rating';

const dummyReviews = [
{
Expand Down
11 changes: 11 additions & 0 deletions src/shared/ui/Rating/Rating.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Flex, Icon, Text } from '@chakra-ui/react';
import { AiFillStar } from 'react-icons/ai';

export function Rating() {
return (
<Flex align="center" gap={1}>
<Icon as={AiFillStar} color="yellow.400" />
<Text fontSize="xs">5</Text>
</Flex>
);
}
1 change: 1 addition & 0 deletions src/shared/ui/Rating/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Rating } from './Rating';
7 changes: 0 additions & 7 deletions src/shared/ui/StartLogo/StartLogo.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/shared/ui/StartLogo/icon-logo.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/shared/ui/StartLogo/index.ts

This file was deleted.

0 comments on commit 56699c3

Please sign in to comment.