-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ReportDialog #1453
base: dev
Are you sure you want to change the base?
feat: add ReportDialog #1453
Conversation
@@ -110,3 +110,7 @@ export const formatWage = wage => { | |||
|
|||
export const formatDate = ({ year, month }) => | |||
`${year}.${month >= 10 ? '' : 0}${month}`; | |||
|
|||
export const getReportCount = (salaryWorkTimeReports = 0) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
從 callsite 來看 input 應該是 Array?
export const getReportCount = (salaryWorkTimeReports = 0) => { | |
export const getReportCount = (salaryWorkTimeReports = []) => { |
@@ -70,6 +73,13 @@ const ReactionZone = ({ experienceId, onClickMsgButton }) => { | |||
> | |||
留言 | |||
</ReactionButton> | |||
<ReactionButton className={styles.report} Icon={() => null}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建議直接修改 ReactionButton
讓 Icon 為 optional
<ReactionButton className={styles.report} Icon={() => null}> | |
<ReactionButton className={styles.report}> |
const expInYearText = formatExperienceInYear(experience.experience_in_year); | ||
return ( | ||
<Fragment> | ||
<div className={styles.reportDialogContainer}> | ||
<ReportDialog reportCount={reportCount} /> | ||
{Boolean(reportCount) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: 跟這個應該是一樣的意思
{Boolean(reportCount) && ( | |
{reportCount && ( |
Hi @YongChenSu please help take a look at @peteranny 's comment. |
這個 PR 是?
Screenshots
我應該從何看起?
先給出 UI,功能實作中,回報數量先給預設常數。
Questions:
串 API 中
已驗證,
createSalaryWorkTimeReport
、createExperienceReport
、query experience
功能正常。但無法
query salaryWorkTime
,有可能是 query 下錯,詢問中,討論串連結我應該如何手動測試?
起 local