Skip to content

Commit

Permalink
Finished stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Superbro525Alt committed Feb 7, 2024
1 parent 0b238a8 commit 0bad0a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/app/admin/db/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export default function DatabaseDashboard() {
<Label>{task.desc}</Label>
</Card>
<div className="button-grid">
<Button variant="outline" colorScheme="teal" onClick={() => {RestoreTask(task.id)}}>Restore</Button>
<Button variant="destructive" colorScheme="teal" onClick={() => {DeleteTask(task.id)}}>Delete</Button>
<Button variant="outline" onClick={() => {RestoreTask(task.id)}}>Restore</Button>
<Button variant="destructive" onClick={() => {DeleteTask(task.id)}}>Delete</Button>
</div>
</Card>
))
Expand All @@ -185,7 +185,7 @@ export default function DatabaseDashboard() {
<Card className="p-2">
<Label>{task.desc}</Label>
</Card>
<Button variant="outline" colorScheme="teal" onClick={() => {CompleteTask(task.id)}}>Complete</Button>
<Button variant="outline" onClick={() => {CompleteTask(task.id)}}>Complete</Button>
</Card>
))
},
Expand Down
10 changes: 5 additions & 5 deletions src/app/server/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ export default function TaskInput() {
placeholder="Task Name"
value={taskName}
onChange={(e) => setTaskName(e.target.value)}
mb={2}
//mb={2}
/>
<Textarea
placeholder="Task Description"
value={taskDescription}
onChange={(e) => setTaskDescription(e.target.value)}
mb={2}
//mb={2}
/>

<Button colorScheme="teal" onClick={handleAddTag} mt={4}>
<Button onClick={handleAddTag}>
Add Tag
</Button>

Expand Down Expand Up @@ -174,13 +174,13 @@ export default function TaskInput() {
</Command>
</PopoverContent>
</Popover>
<Button size="sm" colorScheme="red" mt={2} onClick={() => handleRemoveTag(index)}>
<Button size="sm" onClick={() => handleRemoveTag(index)}>
Remove Tag
</Button>
</Card>
))}

<Button colorScheme="teal" onClick={handleSubmit}>
<Button onClick={handleSubmit}>
Send
</Button>
</Card>
Expand Down
10 changes: 5 additions & 5 deletions src/app/team/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function Home() {
const [matches, setMatches] = React.useState([]);
const [canGetMatches, setCanGetMatches] = React.useState(true);

const [teamNumber, setTeamNumber] = React.useState(0);
const [teamNumber, setTeamNumber] = React.useState('');

const [strategy, setStrategy] = React.useState('');
const [tasks, setTasks] = React.useState([]);
Expand Down Expand Up @@ -149,8 +149,8 @@ export default function Home() {
}

function GetTeamEventData() {
if (teamNumber > 0) {
GetTeamData(teamNumber, currentEvent).then((data) => {
if (teamNumber != '0') {
GetTeamData(Number(teamNumber), currentEvent).then((data) => {
setTeamData(data);
})

Expand Down Expand Up @@ -391,7 +391,7 @@ export default function Home() {

<Card className="p-3 min-h-[100%] max-h-[100%] tasks no-scrollbar">

{tasks != 'null' || tasks != null || tasks.length != 0 ? tasks.map((task) => (
{tasks != null || tasks.length != 0 ? tasks.map((task) => (
<Card className="p-3 taskGrid task flex flex-col overflow-scroll no-scrollbar mb-[40%] max-h-[105%] min-h-[105%]">
<Card className="flex flex-row items-center text-left p-2 gap-2">
{task.tags.map((tag) => (<Badge variant={tag.style}>{tag.text}</Badge>))}
Expand All @@ -400,7 +400,7 @@ export default function Home() {
<Card className="p-2">
<Label>{task.desc}</Label>
</Card>
<Button variant="outline" colorScheme="teal" onClick={() => {CompleteTask(task.id)}}>Complete</Button>
<Button variant="outline" onClick={() => {CompleteTask(task.id)}}>Complete</Button>
</Card>
)) : <Label>Fetching Tasks</Label>}

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strict": true,
"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down

0 comments on commit 0bad0a2

Please sign in to comment.