Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary of ChangesHello @MlNTYS, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 메인 페이지의 프로모션 배너에 클릭 기능을 추가하여 사용자가 특정 배너를 클릭했을 때 데모데이 페이지로 이동할 수 있도록 구현합니다. 이는 사용자 경험을 개선하고 특정 이벤트 페이지로의 접근성을 높이는 데 기여합니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request introduces functionality to navigate to a demo-day page by clicking on a promotion banner. The changes involve adding a link property to the banner interface and data, using useNavigate hook for redirection, and conditionally applying click handlers and styling. The implementation includes comments indicating temporary nature related to 'demo-day', which should be addressed for permanent features.
| @@ -1,4 +1,5 @@ | |||
| import { useState, useRef } from "react"; | |||
| import { useNavigate } from "react-router"; // [demo-day] 데모데이 끝나면 제거 | |||
There was a problem hiding this comment.
The comment // [demo-day] 데모데이 끝나면 제거 indicates that this import is temporary. While useful for tracking, it's important to ensure these temporary flags are properly managed and removed once the demo-day period is over to avoid dead code or unexpected behavior in the future. Consider creating a follow-up task to remove this.
| id: number; | ||
| alt: string; | ||
| src: string; | ||
| link?: string; // [demo-day] 데모데이 끝나면 제거 |
There was a problem hiding this comment.
| id: 1, | ||
| alt: "AI 사진 복원 프로모션 배너", | ||
| src: promotionBanner1, | ||
| link: "/demo-day", // [demo-day] 데모데이 끝나면 제거 |
There was a problem hiding this comment.
| ]; | ||
|
|
||
| export default function PromotionBanner() { | ||
| const navigate = useNavigate(); // [demo-day] 데모데이 끝나면 제거 |
There was a problem hiding this comment.
| // [demo-day] 아래 3줄 데모데이 끝나면 제거 | ||
| onClick={banner.link ? () => navigate(banner.link!) : undefined} | ||
| role={banner.link ? "link" : undefined} | ||
| style={banner.link ? { cursor: "pointer" } : undefined} |
There was a problem hiding this comment.
🔀 Pull Request Title
배너 클릭으로 데모데이 페이지 이동하기
📌 PR 설명
배너 클릭으로 데모데이 페이지 이동하기