Skip to content

Commit

Permalink
Disable data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sha-dos authored Feb 29, 2024
1 parent dfe562e commit 71fbaaf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/data/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {getDatabase, ref, set} from "@firebase/database";
import {title} from "@/components/primitives";

export default function DataPage() {
const [data, setData] = useState<Data | null>(null);
/*const [data, setData] = useState<Data | null>(null);
useEffect(() => {
readData().then(value => {
Expand All @@ -21,7 +21,7 @@ export default function DataPage() {
function upload() {
const db = getDatabase();
/*data?.matches.map(match => {
data?.matches.map(match => {
set(ref(db, 'data/' + match.matchNumber + '/teams/' + match.teamNumber), {
ampPlayed: match.ampPlayed,
amplify: match.amplify,
Expand All @@ -40,7 +40,7 @@ export default function DataPage() {
notesAttempted: match.notesAttempted,
trap: match.trap
});
})*/
})
}
return (
Expand All @@ -55,7 +55,10 @@ export default function DataPage() {
</div>
</ScrollShadow>
</div>
);
);*/

return (
<h1>Data</h1>
}

function MatchList(match: number, team: number, comments: string) {
Expand Down

0 comments on commit 71fbaaf

Please sign in to comment.