This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59b3871
commit cfcfa90
Showing
18 changed files
with
143 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
src/entities/user/avatar/DummyAvatar.tsx → src/entities/user/avatar/NotAuthAvatar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './Avatar'; | ||
export * from './DummyAvatar'; | ||
export * from './notAuth.svg'; | ||
export * from './NotAuthAvatar'; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Flex, Heading, Container, TabPanels, TabPanel } from '@chakra-ui/react'; | ||
|
||
import { ProfileCardNotAuth } from '~/entities/user'; | ||
|
||
import { GoBack } from '~/shared/ui/GoBack'; | ||
|
||
import { ProfileTabs } from './ProfileTabs'; | ||
import { NotAuthTab } from './tabs/not-auth'; | ||
|
||
export function DeletedProfile() { | ||
return ( | ||
<Container maxW="md" mb={4}> | ||
<Flex alignItems="center" mt={4} mb={16} h={42} gap={2}> | ||
<GoBack prevCount={-2} /> | ||
<Heading variant="h1" as="h1"> | ||
Профиль | ||
</Heading> | ||
</Flex> | ||
<ProfileCardNotAuth isDeleted /> | ||
<ProfileTabs> | ||
<TabPanels> | ||
<TabPanel> | ||
<NotAuthTab isDeleted /> | ||
</TabPanel> | ||
<TabPanel> | ||
<NotAuthTab isDeleted /> | ||
</TabPanel> | ||
</TabPanels> | ||
</ProfileTabs> | ||
</Container> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './ProfileMePage'; | ||
export * from './ProfilePage.desktop'; | ||
export * from './ProfileUserPage'; | ||
export * from './DeletedProfile'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { Text } from '@chakra-ui/react'; | ||
|
||
export const NotAuthTab = () => { | ||
interface NotAuthTabType { | ||
isDeleted?: boolean; | ||
} | ||
|
||
export const NotAuthTab = ({ isDeleted }: NotAuthTabType) => { | ||
return ( | ||
<Text textAlign="center" color="gray.700" pt={5}> | ||
Для создания личного профиля необходимо зарегистрироваться | ||
<Text textAlign="center" color="gray.700"> | ||
{isDeleted | ||
? 'Страница удалена' | ||
: 'Для создания личного профиля необходимо зарегистрироваться'} | ||
</Text> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { ImageProps } from '@chakra-ui/react'; | ||
import { Image } from '@chakra-ui/react'; | ||
|
||
import image from './image.svg'; | ||
|
||
export function DummyAvatar({ ...props }: ImageProps) { | ||
return <Image src={image} {...props} />; | ||
} |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './DummyAvatar'; |