snowballtools-base/packages/frontend/src/components/projects/project/settings/GitSelectionSection.tsx
Nabarun Gogoi db3b9148b6
Save commit message in DB and show in deployments list (#67)
* Display commit message in projects and deployments

* Handle if current deployment not present

* Rename types file

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2024-02-14 14:25:50 +05:30

35 lines
770 B
TypeScript

import React from 'react';
import { GitSelect } from '../../../../types';
const GitSelectionSection = ({
gitSelectionHandler,
}: {
gitSelectionHandler: (git: GitSelect) => void;
}) => {
return (
<>
<div
className="flex gap-4 border-b-2 border-gray-200 cursor-pointer p-1"
onClick={() => {
gitSelectionHandler(GitSelect.GITHUB);
}}
>
<div>^</div>
<div className="grow">Github</div>
<div>{'>'}</div>
</div>
<div
className="flex gap-4 border-b-2 border-gray-200 cursor-pointer p-1"
onClick={() => {}}
>
<div>^</div>
<div className="grow">Gitea</div>
<div>{'>'}</div>
</div>
</>
);
};
export default GitSelectionSection;