diff --git a/src/layouts/ReviewRequest/Dashboard.stories.tsx b/src/layouts/ReviewRequest/Dashboard.stories.tsx index fd03a69db..34562cf40 100644 --- a/src/layouts/ReviewRequest/Dashboard.stories.tsx +++ b/src/layouts/ReviewRequest/Dashboard.stories.tsx @@ -16,7 +16,7 @@ const Template = ReviewRequestDashboard export const Playground: Story = Template.bind({}) Playground.args = { - siteName: "MOCK_ADMINS", + reviewRequestedTime: new Date(), reviewUrl: "Copied to your clipboard kekw", title: "Update STCCED hyperlink, customs duty", requestor: "seaerchin", diff --git a/src/layouts/ReviewRequest/Dashboard.tsx b/src/layouts/ReviewRequest/Dashboard.tsx index b31c7dbc2..43a9041d8 100644 --- a/src/layouts/ReviewRequest/Dashboard.tsx +++ b/src/layouts/ReviewRequest/Dashboard.tsx @@ -12,29 +12,29 @@ import { PopoverContent, PopoverBody, PopoverArrow, + IconButton, } from "@chakra-ui/react" -import { IconButton } from "@opengovsg/design-system-react" import { MenuDropdownButton, MenuDropdownItem, } from "components/MenuDropdownButton" import { useState } from "react" -import { BiLink } from "react-icons/bi" +import { BiLink, BiPlus } from "react-icons/bi" import { extractInitials, getDateTimeFromUnixTime } from "utils" import { RequestOverview, EditedItemProps } from "./components/RequestOverview" export interface ReviewRequestDashboardProps { - siteName: string reviewUrl: string title: string requestor: string reviewers: string[] + reviewRequestedTime: Date changedItems: EditedItemProps[] } export const ReviewRequestDashboard = ({ - siteName, + reviewRequestedTime, reviewUrl, title, requestor, @@ -89,7 +89,7 @@ export const ReviewRequestDashboard = ({ @@ -133,9 +133,7 @@ const SecondaryDetails = ({ reviewers, reviewRequestedTime, }: SecondaryDetailsProps) => { - const { date, time } = getDateTimeFromUnixTime( - reviewRequestedTime.getTime() / 1000 - ) + const { date, time } = getDateTimeFromUnixTime(reviewRequestedTime.getTime()) return ( @@ -146,12 +144,13 @@ const SecondaryDetails = ({ Reviewers - {reviewers.map((name) => { + {reviewers.map((name, index) => { const initials = extractInitials(name) return ( ) })} + {/* NOTE: Not using design system IconButton as we require sm size */} + } + aria-label="Add Reviewer" + variant="outline" + borderRadius="50%" + fontSize="1rem" + size="sm" + ml="-0.25rem" + bg="blue.50" + />