-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from awest25/development
Development
- Loading branch information
Showing
66 changed files
with
16,941 additions
and
6,746 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx lint-staged |
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,7 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 80, | ||
"tabWidth": 2 | ||
} |
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,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
} |
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,17 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true, // Auto-fix ESLint issues on save | ||
"source.fixAll.eslint": true // Specific to ESLint | ||
}, | ||
"prettier.requireConfig": true, | ||
"eslint.format.enable": true, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"eslint.alwaysShowStatus": true | ||
} |
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,38 +1,56 @@ | ||
import Link from 'next/link'; | ||
|
||
import SearchDropdown from '../components/SearchDropdown'; | ||
|
||
import styles from '../styles/Home.module.css' | ||
// app/(homepage)/page.js (Home Component) | ||
'use client' | ||
import React from 'react' | ||
// import Link from 'next/link' | ||
import Dashboard from '../components/Dashboard.js' | ||
// import styles from '../styles/Home.module.css' | ||
// import { useAuth } from '../components/AuthWrapper' // Import useAuth | ||
|
||
const Home = () => { | ||
return ( | ||
<div className={styles.container}> | ||
<h1 className={styles.title}> | ||
Match Viewer | ||
</h1> | ||
// const { authUser, userProfile, handleSignOut } = useAuth() // Use useAuth hook to get the user and sign-out function | ||
|
||
{/* Search Dropdown */} | ||
<div className="searchDropdown"> | ||
<SearchDropdown/> | ||
return ( | ||
/* | ||
<div> | ||
<div className={styles.titleBar}> | ||
<div className={styles.leftTitle}> | ||
<h1>BSA | Tennis Consulting</h1> | ||
</div> | ||
<div className={styles.rightTitle}> | ||
{authUser ? ( | ||
<button onClick={handleSignOut}>Sign Out</button> | ||
) : ( | ||
<button>Sign In</button> | ||
)} | ||
</div> | ||
</div> | ||
<div className={styles.container}> | ||
<h1 className={styles.title}>Match Viewer</h1> | ||
{/* Search Dropdown */ /* } | ||
<div className="searchDropdown"> | ||
<SearchDropdown /> | ||
</div> | ||
{/* Other Links */} | ||
<div className={styles.actionsContainer}> | ||
<p>Or get started by:</p> | ||
<ul> | ||
<li> | ||
<Link href="/upload-match">Uploading a match</Link> | ||
</li> | ||
<li> | ||
<Link href="/upload-team">Adding a Team</Link> | ||
</li> | ||
<li> | ||
<Link href="/tag-match">Tagging a match</Link> | ||
</li> | ||
</ul> | ||
{/* Other Links */ /* } | ||
<div className={styles.actionsContainer}> | ||
<p>Or get started by:</p> | ||
<ul> | ||
<li> | ||
<Link href="/upload-match">Uploading a match</Link> | ||
</li> | ||
<li> | ||
<Link href="/upload-team">Adding a Team</Link> | ||
</li> | ||
<li> | ||
<Link href="/tag-match">Tagging a match</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
</div> */ | ||
<Dashboard /> | ||
) | ||
} | ||
|
||
export default Home; | ||
export default Home |
Oops, something went wrong.