Skip to content

Commit

Permalink
Add contextual links to some list views and Playground panel (#5312)
Browse files Browse the repository at this point in the history
* add contextual links

* contextual links

* add tracking

* changesets

* i18n fix

* remove fragment

* type fix

* small UI fixes

---------

Co-authored-by: Paweł Chyła <[email protected]>
  • Loading branch information
Cloud11PL and poulch committed Jan 8, 2025
1 parent 5717954 commit f986ca7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-flowers-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

You can now see contextual links to documentation in product, webhooks, order, staff members lists and Graphql Playground panel.
11 changes: 5 additions & 6 deletions src/components/AppLayout/TopNav/TopNavWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import React from "react";

import { topBarHeight, topBarHeightSubtitle } from "../consts";

export const TopNavWrapper: React.FC<{
withoutBorder?: boolean;
hasSubtitle?: boolean;
}> = ({ children, withoutBorder, hasSubtitle }) => (
export const TopNavWrapper: React.FC<{ withoutBorder?: boolean; hasSubtitle?: boolean }> = ({
children,
withoutBorder,
hasSubtitle,
}) => (
<Box
display={hasSubtitle ? "block" : "flex"}
alignItems="center"
paddingX={6}
paddingY={5}
borderBottomWidth={withoutBorder ? 0 : 1}
Expand Down

0 comments on commit f986ca7

Please sign in to comment.