Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amitgupta0220 committed Nov 4, 2024
2 parents 63fbd37 + 9d112ae commit 77c3035
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,21 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
<<<<<<< HEAD
node-version: "16" # Make sure this matches your local environment
=======
node-version: "18" # Make sure this matches your local environment
>>>>>>> 9d112aefea993563d76cd2762919f5e2a18321d1

- name: Clear npm cache
run: npm cache clean --force

<<<<<<< HEAD
=======
- name: Clean and install dependencies
run: rm -rf node_modules package-lock.json

>>>>>>> 9d112aefea993563d76cd2762919f5e2a18321d1
- name: Install dependencies
run: npm install

Expand All @@ -32,4 +42,8 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
<<<<<<< HEAD
publish_dir: ./dist # Use ./build for Create React App, ./dist for Vite
=======
publish_dir: ./dist
>>>>>>> 9d112aefea993563d76cd2762919f5e2a18321d1
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"gh-pages": "^6.2.0",
"globals": "^15.9.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
Expand Down
2 changes: 1 addition & 1 deletion src/context/HomeNewsContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const HomeNewsCardContext = ({ children }) => {
const [cards, setCards] = useState([]);

useEffect(() => {
Papa.parse(`${baseURL}/assets/news.csv`, {
Papa.parse(`${baseURL}assets/news.csv`, {
download: true,
header: true,
skipEmptyLines: true,
Expand Down
2 changes: 1 addition & 1 deletion src/context/TeamContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const CardProvider = ({ children }) => {
useEffect(() => {
const fetchData = async () => {
try {
const data = await fetchYAML(`${baseURL}/assets/members-1.yml`);
const data = await fetchYAML(`${baseURL}assets/members-1.yml`);

const categorizedData = {
lead: data.filter((card) => card.Degree === "Director"),
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/team/HomeTeam.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const teamMembers = [
name: "Dr Jacob Luber",
role: "Director, HDSL",

imgSrc: baseURL + "/assets/images/jacob.jpg",
imgSrc: baseURL + "assets/images/jacob.jpg",
},
{
name: "Helen Shang",
role: "Visiting Assistant Professor",
imgSrc: baseURL + "/assets/images/shang.jpeg",
imgSrc: baseURL + "assets/images/shang.jpeg",
},
];

Expand Down

0 comments on commit 77c3035

Please sign in to comment.