snowballtools-base/packages/frontend/src/components/projects/project/settings/RepoConnectedSection.tsx
Nabarun Gogoi 2cb1feedcb
Implement functionality for adding web hooks in settings Git tab (#37)
* Add webhookUrl card in settings/git

* Implement copy functionality

* Fix form reset

* Handle review changes

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2023-12-28 18:21:27 +05:30

31 lines
696 B
TypeScript

import React from 'react';
import { Button, Typography } from '@material-tailwind/react';
import { RepositoryDetails } from '../../../../types/project';
const RepoConnectedSection = ({
linkedRepo,
}: {
linkedRepo: RepositoryDetails;
}) => {
return (
<div className="flex gap-4">
<div>^</div>
<div className="grow">
<Typography variant="small">
{linkedRepo.user}/{linkedRepo.title}
</Typography>
<Typography variant="small">Connected just now</Typography>
</div>
<div>
<Button variant="outlined" size="sm">
^ Disconnect
</Button>
</div>
</div>
);
};
export default RepoConnectedSection;