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>
30 lines
816 B
TypeScript
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;
|