Skip to content

Commit

Permalink
refact: reposition status tag on ContributionDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed Dec 12, 2024
1 parent debd9c0 commit d026437
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions components/contributions/ContributionDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,12 @@ export function ContributionDrawer(props: ContributionDrawerProps) {
<DrawerHeader
actions={actions}
dropdownTriggerRef={dropdownTriggerRef}
entityName={<FormattedMessage defaultMessage="Contribution" id="0LK5eg" />}
entityName={
<div className="flex items-center gap-1">
<OrderStatusTag status={query.data?.order?.status} overflow="visible" />
<FormattedMessage defaultMessage="Contribution" id="0LK5eg" />
</div>
}
forceMoreActions
entityIdentifier={
<CopyID
Expand All @@ -274,10 +279,7 @@ export function ContributionDrawer(props: ContributionDrawerProps) {
{isLoading ? (
<Skeleton className="h-6 w-56" />
) : (
<div className="flex items-start gap-2 text-base font-semibold text-foreground">
<OrderStatusTag status={query.data.order.status} overflow="visible" />
{query.data.order.description}
</div>
<div className="text-base font-semibold text-foreground">{query.data.order.description}</div>
)}
</React.Fragment>
}
Expand Down

0 comments on commit d026437

Please sign in to comment.