Skip to content

Commit

Permalink
chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Jan 9, 2024
1 parent 8303f40 commit 8aaf689
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
29 changes: 22 additions & 7 deletions src/components/ModalConfirmation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import { IoWarningOutline } from 'react-icons/io5';
// import { RiDeleteBin6Line } from 'react-icons/ri';
import {
Modal,
ModalOverlay,
Expand All @@ -9,8 +11,9 @@ import {
ModalFooter,
Box,
Alert,
AlertIcon,
Icon,
Button,
useColorModeValue,
} from '@chakra-ui/react';

import { ModalOptionsAndConfirType } from './types';
Expand All @@ -22,9 +25,11 @@ export function ModalConfirmation({
name,
isPending,
}: ModalOptionsAndConfirType) {
const colorIconWar = useColorModeValue('yellow.700', 'yellow.300');

return (
<>
<Modal isOpen={isOpen} onClose={onClose} size='md'>
<Modal isOpen={isOpen} onClose={onClose} size={{ base: 'xs', md: 'md' }}>
<ModalOverlay backdropFilter='blur(7px)' />
<ModalContent>
<ModalHeader>Eliminar</ModalHeader>
Expand All @@ -36,13 +41,17 @@ export function ModalConfirmation({
</Box>
?
<Alert
mt='6'
mt='7'
status='warning'
variant='left-accent'
borderRightRadius='lg'
fontSize='sm'
rounded='lg'
fontSize={{ base: 'xs', md: 'sm' }}
>
<AlertIcon />
<Icon
as={IoWarningOutline}
boxSize='7'
mr='3'
color={colorIconWar}
/>
El libro será eliminado de manera permanente y no se podrá
recuperar.
</Alert>
Expand All @@ -53,10 +62,16 @@ export function ModalConfirmation({
onClick={onDeleteBook}
fontWeight='normal'
fontSize='sm'
bg='red.400'
loadingText='Eliminando...'
isLoading={isPending}
_hover={{ color: 'none' }}
>
{/* <Icon
as={RiDeleteBin6Line}
boxSize='4'
mr='3'
/> */}
Eliminar
</Button>
<Button
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 @@ -255,7 +255,7 @@ export function MobileNav() {
</List> */}
{linkRegister}
<Box fontSize='10px' my='1'>
XBuniverse 2023 - 2024
2023 - 2024 XBuniverse
</Box>
</DrawerFooter>
</DrawerContent>
Expand Down
3 changes: 1 addition & 2 deletions src/services/firebase/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ function SignIn() {
return (
<>
<Button
w='260px'
fontWeight='normal'
leftIcon={<GrGoogle size='20px' />}
bg={useColorModeValue('#EA4335', '#EE685D')}
color={useColorModeValue('white', 'black')}
borderRadius='lg'
p='7'
p='6'
fontSize='md'
_hover={{ bg: '#D23C2F' }}
_active={{ bg: '#BB352A' }}
Expand Down

1 comment on commit 8aaf689

@vercel
Copy link

@vercel vercel bot commented on 8aaf689 Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xbu – ./

xbu-git-main-franqsanz.vercel.app
xbu.vercel.app
xbu-franqsanz.vercel.app

Please sign in to comment.