Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Jun 24, 2024
1 parent 9a37fa2 commit 50d2ecc
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ npm install

npm run dev
```

## License
[MIT © 2023](./LICENSE) Franco Sánchez
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
"test:ui": "vitest --ui",
"test:watch": "npm run test -- --watch",
"cy:open": "cypress open",
"cy:run": "cypress run"
"cy:run": "cypress run",
"prepare": "husky install"
},
"author": "Franco Andrés Sánchez",
"license": "MIT",
"dependencies": {
"@chakra-ui/react": "2.8.2",
"@emotion/react": "11.11.4",
Expand Down
5 changes: 4 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ export function Footer() {
>
Políticas de Privacidad
</Link>
<Box display={{ base: 'none', md: 'block' }} fontSize='14px' my='2'>
2024 XBuniverse
</Box>
<Flex
mt='4'
mt={{ base: 4, md: 2 }}
align='center'
fontSize='xs'
bg='black'
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/FormEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function FormEdit({
</Box>
<Box mt='1' fontSize='13px'>
<Box as='span'>
Solo se aceptan formatos PNG, JPG y WebP con un máximo de 1 MB.
Solo se aceptan formatos PNG, JPG y WebP con un máximo de 2 MB.
</Box>
</Box>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/NewBook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function FormNewBook() {
</Box>
<Box mt='1' fontSize='13px'>
<Box as='span'>
Solo se aceptan formatos PNG, JPG y WebP con un máximo de 1 MB.
Solo se aceptan formatos PNG, JPG y WebP con un máximo de 2 MB.
</Box>
</Box>
</Box>
Expand Down
6 changes: 3 additions & 3 deletions src/components/forms/utils/utilsForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ async function handleImage(e, setCropData, onOpen) {
const file = e.target.files?.[0];
if (!file) return;

// 1 MB
if (file.size > 1000000) {
// 2 MB
if (file.size > 2000000) {
alert(
`El tamaño de la imagen es mayor a 1 MB. Por favor, seleccione una imagen de menor tamaño.`,
`El tamaño de la imagen es mayor a 2 MB. Por favor, seleccione una imagen de menor tamaño.`,
);

return;
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav/MobileNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function MobileNav() {
</List> */}
{linkRegister}
<Box fontSize='10px' my='1'>
2023 - 2024 XBuniverse
2024 XBuniverse
</Box>
</DrawerFooter>
</DrawerContent>
Expand Down
1 change: 0 additions & 1 deletion src/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function AuthProvider({ children }: AuthProviderType) {
const token = await user.getIdToken(true);
window.localStorage.setItem('app_tk', token);
setToken(token);
// document.cookie = `app_tk=${token}; SameSite=None; path=/;`;
} catch (error) {
console.error('Error al actualizar el token:', error);
}
Expand Down

0 comments on commit 50d2ecc

Please sign in to comment.