mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2025-08-12 08:44:06 +00:00
* Create repo webhook and express handler for webhook * Create deployments from commits in GitHub * Update isCurrent in previous production deployment * Create script for setting authority * Update README for initialize registry script * Handle review changes * Use correct repo URL in record data * Handle github unique webhook error * Handle async execution of publishing records * Update readme with ngrok setup * Review changes * Add logs for GitHub webhooks --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import React from 'react';
|
|
|
|
import { Typography, IconButton } from '@material-tailwind/react';
|
|
|
|
import { relativeTimeISO } from '../../../utils/time';
|
|
import { GitCommitWithBranch } from '../../../types';
|
|
|
|
interface ActivityCardProps {
|
|
activity: GitCommitWithBranch;
|
|
}
|
|
|
|
const ActivityCard = ({ activity }: ActivityCardProps) => {
|
|
return (
|
|
<div className="group flex hover:bg-gray-200 rounded mt-1">
|
|
<div className="w-4">^</div>
|
|
|
|
<div className="grow">
|
|
<Typography>{activity.commit.author?.name}</Typography>
|
|
<Typography variant="small" color="gray">
|
|
{relativeTimeISO(activity.commit.author!.date!)} ^{' '}
|
|
{activity.branch.name}
|
|
</Typography>
|
|
<Typography variant="small" color="gray">
|
|
{activity.commit.message}
|
|
</Typography>
|
|
</div>
|
|
<div className="mr-2 self-center hidden group-hover:block">
|
|
<IconButton size="sm" className="rounded-full bg-gray-600">
|
|
{'>'}
|
|
</IconButton>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ActivityCard;
|