Skip to content

Commit

Permalink
feat: Fix yarn build frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongbeom-Kim committed Nov 11, 2024
1 parent 3c0478c commit 429f083
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// src/AdminDashboard.tsx
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom'; // Import Link from react-router-dom for navigation
import { getAllUsers } from '../../api/usersApi'; // API function to fetch users
import { User } from '../../models/User'; // Import the User model
Expand Down
2 changes: 1 addition & 1 deletion peerprep/frontend/src/views/UserServiceViews/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// src/Login.tsx
import React, { useState } from "react";
import { useState } from "react";
import { loginUser } from "../../api/authApi";
import { useNavigate, Link } from "react-router-dom"; // Import Link to navigate to signup

Expand Down
2 changes: 1 addition & 1 deletion peerprep/frontend/src/views/UserServiceViews/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// src/Profile.tsx
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { getUserProfile } from '../../api/usersApi'; // Import the getUserProfile function
import { useParams, Link } from 'react-router-dom'; // Import useParams to get userId from the URL
import { User } from '../../models/User'; // Import the User model
Expand Down
2 changes: 1 addition & 1 deletion peerprep/frontend/src/views/UserServiceViews/SignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import { useNavigate, Link } from "react-router-dom"; // Import Link and useNavigate for navigation
import { createUser } from "../../api/usersApi"; // Import the createUser API
import { AxiosError } from "axios"; // Import AxiosError for error handling
Expand Down

0 comments on commit 429f083

Please sign in to comment.