-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: a new view has been created and some things improved
- Loading branch information
Showing
8 changed files
with
84 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
node-version: [20.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
|
@@ -24,5 +24,5 @@ jobs: | |
run: npm ci | ||
- name: Run TypeScript type check | ||
run: npm run ts-lint | ||
- name: Typecheck | ||
uses: andoshin11/[email protected] | ||
# - name: Typecheck | ||
# uses: andoshin11/[email protected] |
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
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,45 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useParams, useLocation, useNavigate } from 'react-router-dom'; | ||
import { Box, Button, Flex, Image, useColorModeValue } from '@chakra-ui/react'; | ||
|
||
// import { MySimpleGrid } from '@components/MySimpleGrid'; | ||
// import { Card } from '@components/cards/Card'; | ||
// import { Aside } from '@components/Aside'; | ||
import { MainHead } from '@components/Head'; | ||
// import { useProfile } from '@hooks/querys'; | ||
// import { parseDate } from '@utils/utils'; | ||
// import { CardType } from '@components/types'; | ||
// import ResultLength from '@components/ResultLength'; | ||
// import { useAuth } from '@contexts/AuthContext'; | ||
import { useAccountActions } from '@hooks/useAccountActions'; | ||
import { ContainerTitle } from '@components/ContainerTitle'; | ||
// import { logOut } from '../../services/firebase/auth'; | ||
|
||
export function MyAccount() { | ||
// const getToken = window.localStorage.getItem('app_tk'); | ||
const { deleteAccount } = useAccountActions(); | ||
// const { currentUser } = useAuth(); | ||
// const uid = currentUser?.uid; | ||
// const { username } = useParams(); | ||
const navigate = useNavigate(); | ||
// const { data } = useProfile(username, uid, getToken); | ||
// const bgCover = useColorModeValue('gray.100', 'gray.700'); | ||
|
||
return ( | ||
<> | ||
<MainHead title={`Mi Cuenta | XBuniverse`} /> | ||
<ContainerTitle title='Mi Cuenta' /> | ||
<Flex justify='center' h='230px' mt='70px'> | ||
<Button | ||
bgColor='red.300' | ||
onClick={() => { | ||
deleteAccount(); | ||
navigate('/'); | ||
}} | ||
> | ||
Eliminar cuenta | ||
</Button> | ||
</Flex> | ||
</> | ||
); | ||
} |
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