Skip to content

Commit

Permalink
clearing build errors from orphaned imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthCountryEngineer committed Mar 28, 2024
1 parent c6cd4b1 commit d49ed12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/components/Admin/AdminComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { useEffect, useState } from "react"
import { MobileAdmin, WebAdmin } from "."
import { NotificationType } from "@/src/API"
import { amplifyApiClient } from "@/src/functions/AuthX"
import { createBroadcastNotification, deleteBroadcastNotification, updateBroadcastNotification, updateNCEStudentProfile } from "@/src/graphql/mutations"
import { createBroadcastNotification, deleteBroadcastNotification, updateBroadcastNotification, updateStudentProfile } from "@/src/graphql/mutations"
import { Box, Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, FormControl, Grid, InputLabel, MenuItem, Select, Tab, Tabs, TextField, Typography } from "@mui/material"
import { listBroadcastNotifications, listNCEStudentProfiles } from "@/src/graphql/queries"
import { listBroadcastNotifications, listStudentProfiles } from "@/src/graphql/queries"
import { DataGrid, GridActionsCellItem, GridColDef, GridRowModes, GridRowModesModel, GridRowsProp } from "@mui/x-data-grid"
import { Delete, Edit } from "@mui/icons-material"
import { TabPanel } from "../Global/Tabs"
Expand Down Expand Up @@ -330,13 +330,13 @@ export const AdminUsersView = () => {
const fetchProfilesAndGroups = async () => {
try {
const profilesData = await amplifyApiClient.graphql({
query: listNCEStudentProfiles,
query: listStudentProfiles,
variables: {},
})

if (profilesData.data.listNCEStudentProfiles.items) {
if (profilesData.data.listStudentProfiles.items) {
const profilesWithGroups = await Promise.all(
profilesData.data.listNCEStudentProfiles.items.map(async (profile) => {
profilesData.data.listStudentProfiles.items.map(async (profile) => {
let groupsForUser = await fetchUserGroups(profile.id)
console.log("GROUPS FOR USER: ", groupsForUser.Data)
try{
Expand Down Expand Up @@ -381,7 +381,7 @@ export const AdminUsersView = () => {
if(editedRow) {
try {
await amplifyApiClient.graphql({
query: updateNCEStudentProfile,
query: updateStudentProfile,
variables: { input: { id: newRow.id, name: newRow.name, email:newRow.email, status:newRow.status } },
})
setRows((prevRows) => prevRows.map((row) => (row.id === editedRow.id ? editedRow : row)))
Expand Down
2 changes: 1 addition & 1 deletion src/functions/AuthX.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const checkAuthStatus = async () => {
/**
* Asynchronously creates a student profile in the system.
*
* @param {CreateNCEStudentProfileInput} studentProfileInput - The input object containing user profile details.
* @param {CreateStudentProfileInput} studentProfileInput - The input object containing user profile details.
* @returns {Promise<{isSignedUp: boolean, userProfile: any}>} A promise that resolves to an object indicating if the profile was successfully created and the user profile data.
*/
export const handleCreateStudentProfile = async (studentProfileInput:CreateStudentProfileInput) => {
Expand Down
1 change: 0 additions & 1 deletion src/functions/SignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import { SignUpHooksProps, handleConfirmSignUpReturnType } from "@/src/types/SignUpTypes"
import { ConfirmSignUpInput, ConfirmSignUpOutput, SignUpOutput, confirmSignUp, signUp } from "aws-amplify/auth"
import { CreateNCEStudentProfileInput, ModelNCEStudentProfileConditionInput } from "../API"

/**
* Array of allowed ZIP codes for the signup process.
Expand Down

0 comments on commit d49ed12

Please sign in to comment.