Skip to content

Commit e75ceaa

Browse files
feat: minor ui updates
1 parent 9bc663f commit e75ceaa

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

packages/grant-explorer/src/features/projects/ViewProject.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { ReactComponent as CartCircleIcon } from "../../assets/icons/cart-circle
2626
import { ReactComponent as CheckedCircleIcon } from "../../assets/icons/checked-circle.svg";
2727
import { ProjectBanner } from "../common/ProjectBanner";
2828
import Breadcrumb, { BreadcrumbItem } from "../common/Breadcrumb";
29-
import { Box, Button, Skeleton, SkeletonText, Tab, Tabs } from "@chakra-ui/react";
29+
import { Box, Skeleton, SkeletonText, Tab, Tabs } from "@chakra-ui/react";
3030
import {
3131
ProjectApplicationWithRoundAndProgram,
3232
useDataLayer,
@@ -254,13 +254,11 @@ export default function ViewProject() {
254254
</div>
255255
<div className="md:flex gap-4 flex-row-reverse">
256256
<div className="mb-4">
257-
<Sidebar
258-
projectApplications={projectApplications}
259-
/>
257+
<Sidebar projectApplications={projectApplications} />
260258
<button
261259
type="button"
262260
data-testid="direct-allocation-button"
263-
className="w-full block my-0 mx-1 bg-gitcoin-violet-100 py-2 text-center text-sm font-semibold leading-6 text-gitcoin-violet-400 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
261+
className="w-full block my-0 mx-1 bg-gitcoin-violet-100 py-2 text-center text-sm font-semibold rounded-lg leading-6 text-gitcoin-violet-400 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
264262
onClick={() => setShowDirectAllocationModal(true)}
265263
>
266264
<BoltIcon className="w-4 h-4 inline-block mr-1 mb-1" />
@@ -331,9 +329,8 @@ export default function ViewProject() {
331329
{projectData?.project?.metadata.title}
332330
</p>
333331
</div>
334-
</div>
332+
</div>
335333
<div className="flex sm:space-x-4 space-x-2 h-16 sm:pl-4 pt-3 justify-center">
336-
337334
<p className="mt-4 md:mt-3 text-xs md:text-sm amount-text font-medium">
338335
Amount
339336
</p>
@@ -616,9 +613,7 @@ function Sidebar(props: {
616613
return (
617614
<div className="flex flex-col">
618615
<div className="min-w-[320px] h-fit mb-6 rounded-3xl bg-gray-50">
619-
<ProjectStats
620-
projectApplications={props.projectApplications}
621-
/>
616+
<ProjectStats projectApplications={props.projectApplications} />
622617
</div>
623618
{activeQFRoundApplications && activeQFRoundApplications?.length > 0 && (
624619
<h4 className="text-xl font-medium">Active rounds</h4>

0 commit comments

Comments
 (0)