forked from cerc-io/snowballtools-base
* Add switching of repository list and connect account * Populate project cards with dummy projects data * Fix typos of dummy datas * Fix prettier error --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
26 lines
576 B
TypeScript
26 lines
576 B
TypeScript
import React from 'react';
|
|
import { DateTime } from 'luxon';
|
|
|
|
interface RepositoryDetails {
|
|
title: string;
|
|
updatedTime: string;
|
|
}
|
|
|
|
interface ProjectRepoCardProps {
|
|
repository: RepositoryDetails;
|
|
}
|
|
|
|
const ProjectRepoCard: React.FC<ProjectRepoCardProps> = ({ repository }) => {
|
|
return (
|
|
<div className="flex text-gray-500 text-xs bg-gray-100 m-2">
|
|
<div>^</div>
|
|
<div className="grow">
|
|
<p>{repository.title}</p>
|
|
<p>{DateTime.fromISO(repository.updatedTime).toRelative()}</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ProjectRepoCard;
|