Skip to content
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

show date under description in build card & build detail page #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/react-app/components/BuildCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ const BuildCard = ({ build, userProvider, userRole, onUpdate }) => {
{build.desc}
</Text>
<Spacer />
<Text fontSize="xs" as="i">
{new Date(build.submittedTimestamp).toDateString()}
</Text>
<Spacer />
<ButtonGroup mt={3}>
<NextLink href={`/build/${build.id}`} passHref>
<Button as={Link} variant="outline" size="sm" isFullWidth>
Expand Down
7 changes: 4 additions & 3 deletions packages/react-app/components/BuildDetailHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ const BuildDetailHeader = ({ build, actionButtons }) => {
{build.name}
</Heading>
<HStack mb={6}>{actionButtons}</HStack>
<Text fontSize="lg" mb={6}>
{build.desc}
<Text fontSize="lg">{build.desc}</Text>
<Text fontSize="xs" as="i">
{new Date(build.submittedTimestamp).toDateString()}
</Text>
<VStack align="left">
<VStack align="left" mt={6}>
<Builder builderAddress={build.builder} />
{build?.coBuilders?.map(builderAddress => (
<Builder builderAddress={builderAddress} key={builderAddress} />
Expand Down