Skip to content

Commit

Permalink
Merge pull request #107 from edenia/feat/zoom-buttons
Browse files Browse the repository at this point in the history
UI fixes
  • Loading branch information
xavier506 committed Jul 4, 2023
2 parents b7caf52 + cb5d5be commit 4914d76
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from "react";
import dayjs from "dayjs";

import { Container, Heading, Text } from "_app/ui";
import { Button, Container, Heading, Text } from "_app/ui";
import {
ActiveStateConfigType,
RoundStage,
VoteData,
} from "elections/interfaces";

import { Consensometer } from "./round-info";
import { MeetingLink } from "./round-info/meeting-link";
// import { MeetingLink } from "./round-info/meeting-link";
import { VideoUploadButton } from "../video-upload-button";

interface RoundInfoPanelProps {
Expand All @@ -36,12 +36,20 @@ export const RoundInfoPanel = ({
stage
) && (
<div>
<MeetingLink
{/* <MeetingLink
stage={stage}
roundIndex={roundIndex}
meetingStartTime={meetingStartTime}
electionConfig={electionConfig!}
/>
/> */}
{console.log({
roundIndex,
meetingStartTime,
electionConfig,
})}
<Button target="_blank" href="https://t.me/Up_Vote_Bot">
Go to Telegram
</Button>
</div>
)}
{[RoundStage.Meeting, RoundStage.PostMeeting].includes(
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/elections/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const getRoundTimes = (
} => {
const roundDurationSec = communityGlobals.election_round_time_sec;
const roundEndTimeRaw =
currentElection.round_end ?? currentElection.seed.end_time;
currentElection?.round_end ?? currentElection?.seed?.end_time;
const roundDurationMs = roundDurationSec * 1000;
const roundEndTime = dayjs(roundEndTimeRaw + "Z");
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const MembersList = ({ searchValue }: Props) => {
return <LoadingContainer />;
}

if (isError) {
if (isError && data.length === 0) {
return (
<MessageContainer
title="Error loading member information"
Expand Down

0 comments on commit 4914d76

Please sign in to comment.