Skip to content

Commit

Permalink
Merge pull request #204 from Andres2D/feature-final-score
Browse files Browse the repository at this point in the history
Feature final score
  • Loading branch information
Andres2D authored Feb 12, 2023
2 parents 86164d6 + 9292108 commit db71c6f
Show file tree
Hide file tree
Showing 12 changed files with 356 additions and 116 deletions.
13 changes: 9 additions & 4 deletions components/layout/modal-alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Button
} from '@chakra-ui/react';
import type { NextPage } from 'next';
import { MutableRefObject, useRef } from 'react';
import { Children, MutableRefObject, useRef } from 'react';

interface Props {
isOpen: boolean;
Expand All @@ -18,6 +18,8 @@ interface Props {
description?: string;
cancelLabel?: string;
continueLabel?: string;
actionColor?: string;
children?: JSX.Element;
}

const ModalAlert: NextPage<Props> = (
Expand All @@ -26,9 +28,11 @@ const ModalAlert: NextPage<Props> = (
onClose,
onContinue,
title = 'Delete',
description = 'Are you sure?',
description,
cancelLabel = 'Cancel',
continueLabel = 'Delete'
continueLabel = 'Delete',
actionColor = 'red',
children
}) => {

const cancelRef = useRef() as MutableRefObject<HTMLButtonElement>;
Expand All @@ -47,13 +51,14 @@ const ModalAlert: NextPage<Props> = (

<AlertDialogBody>
{ description }
{ children }
</AlertDialogBody>

<AlertDialogFooter>
<Button ref={cancelRef} onClick={onClose}>
{ cancelLabel }
</Button>
<Button colorScheme='red' onClick={onContinue} ml={3}>
<Button colorScheme={actionColor} onClick={onContinue} ml={3}>
{ continueLabel }
</Button>
</AlertDialogFooter>
Expand Down
2 changes: 1 addition & 1 deletion components/layout/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Navbar: NextPage = () => {
>
Log out
</Button>
<p>Version 2.4.6</p>
<p>Version 2.5.0</p>
</DrawerFooter>
</DrawerContent>
</Drawer>
Expand Down
12 changes: 12 additions & 0 deletions components/matches/match-list.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@
}
}

.fullTime {
display: flex;
justify-content: space-around;

.formControl {
align-items: center;
display: flex;
flex-direction: column;
width: 30%;
}
}


@media (max-width: $medium-small-device) {
.section {
Expand Down
Loading

1 comment on commit db71c6f

@vercel
Copy link

@vercel vercel bot commented on db71c6f Feb 12, 2023

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:

cotejoapp – ./

cotejoapp-andres2d.vercel.app
cotejoapp-git-main-andres2d.vercel.app
cotejoapp.vercel.app

Please sign in to comment.