laconic-deploy/packages/frontend/src/components/RepositoryList.tsx
Nabarun Gogoi bb723ee58a
Add dummy data for project cards in home page (#1)
* 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>
2023-12-13 17:42:39 +05:30

30 lines
816 B
TypeScript

import React from 'react';
import SearchBar from './SearchBar';
import ProjectRepoCard from './ProjectRepoCard';
import repositoryDetails from '../assets/repositories.json';
const RepositoryList = () => {
return (
<div className="p-4">
<div className="flex">
<div className="basis-1/3">
<input
type="text"
placeholder="All accounts"
className="text-gray-700 text-xs w-full border-none focus:outline-none"
/>
</div>
<div className="basis-2/3">
<SearchBar handler={() => {}} placeholder="Search for repositorry" />
</div>
</div>
{repositoryDetails.map((repo, key) => {
return <ProjectRepoCard repository={repo} key={key} />;
})}
</div>
);
};
export default RepositoryList;