Skip to content

Commit

Permalink
fix: fix the issue where timer doesn't work in TEAM_HEALTH phase (#9597)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianrunhe committed Apr 4, 2024
1 parent d409ea2 commit 96f29b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/components/MeetingControlBar.tsx
Expand Up @@ -57,7 +57,8 @@ const DEFAULT_TIME_LIMIT = {
vote: 3,
discuss: 5,
ESTIMATE: 5,
SCOPE: 3
SCOPE: 3,
TEAM_HEALTH: 1
} as Record<NewMeetingPhaseTypeEnum, number>

interface Props {
Expand Down
4 changes: 4 additions & 0 deletions packages/client/components/TeamHealth.tsx
Expand Up @@ -18,6 +18,7 @@ import * as RadioGroup from '@radix-ui/react-radio-group'
import clsx from 'clsx'
import RaisedButton from './RaisedButton'
import getTeamHealthVoteColor from '../utils/getTeamHealthVoteColor'
import StageTimerDisplay from './StageTimerDisplay'

interface Props {
avatarGroup: ReactElement
Expand All @@ -32,6 +33,8 @@ const TeamHealth = (props: Props) => {
const meeting = useFragment(
graphql`
fragment TeamHealth_meeting on NewMeeting {
...StageTimerDisplay_meeting
...StageTimerControl_meeting
id
endedAt
showSidebar
Expand Down Expand Up @@ -83,6 +86,7 @@ const TeamHealth = (props: Props) => {
<PhaseHeaderTitle>{phaseLabelLookup.TEAM_HEALTH}</PhaseHeaderTitle>
</MeetingTopBar>
<PhaseWrapper>
<StageTimerDisplay meeting={meeting} />
<div className='flex h-[300px] flex-col items-center'>
<div className='text-center text-2xl'>{question}</div>
{isRevealed && votes ? (
Expand Down

0 comments on commit 96f29b5

Please sign in to comment.