Skip to content

Commit

Permalink
use next image
Browse files Browse the repository at this point in the history
  • Loading branch information
Sha1kh4 committed Aug 7, 2024
1 parent 0aac46a commit f2065ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SemesterSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import React, { useState, ChangeEvent, useEffect, useRef } from 'react';
import React, { useState,ChangeEvent, useEffect, useRef } from 'react';
import { creditData } from '../data/creditData';

import Image from 'next/image';
interface SubjectDetails {
name: string;
credits: number;
Expand Down Expand Up @@ -123,7 +123,7 @@ const SemesterSelector: React.FC = () => {
</button>
</div>
<div className="mt-4">
<img
<Image
src={newImageSrc}
alt={totalCredits > 18 ? 'High Credits' : 'Low Credits'}
className="w-80 h-80 mx-auto"
Expand Down

0 comments on commit f2065ae

Please sign in to comment.