Skip to content

Commit

Permalink
docs: fix heading orders (#6606)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir authored Dec 25, 2024
1 parent c9ba139 commit 6ef1680
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion documentation/docs/data/packages/strapi-v4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ const App: React.FC = () => {
render(<App />);
```

##### Relations Population for `/me` request
#### Relations Population for `/me` request

If you need to the population for the `/me` request you can use it like this in your `authProvider`.

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/guides-concepts/forms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ useForm({
});
```

##### **Usage of `<UnsavedChangesNotifier />`**
#### **Usage of `<UnsavedChangesNotifier />`**

<Tabs wrapContent={false}>
<TabItem value="react-router" label="React Router">
Expand Down
1 change: 1 addition & 0 deletions documentation/src/components/sandpack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ const SandpackBase = ({
<div className={clsx(showConsole ? "block" : "hidden", "h-[200px]")} />
</div>
<section className="hidden max-w-0 max-h-0">
<h6>Code Example</h6>
<p>{`Dependencies: ${Object.keys(dependencies ?? {}).map(
(k) => `${k}@${dependencies[k]}`,
)}`}</p>
Expand Down
4 changes: 2 additions & 2 deletions documentation/src/refine-theme/common-admonition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const Admonition = ({ type, title, children }: Props) => {
)}
>
{(title || titles[type]) && (
<div
<h6
className={clsx(
"flex",
"items-center",
Expand All @@ -128,7 +128,7 @@ export const Admonition = ({ type, title, children }: Props) => {
>
<Icon />
<span className="uppercase">{title ?? titles[type] ?? ""}</span>
</div>
</h6>
)}
<div className={clsx("text-gray-0", "text-base", "last:mb-0")}>
{children}
Expand Down
12 changes: 11 additions & 1 deletion documentation/src/refine-theme/common-tab-item.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import React from "react";
import clsx from "clsx";

export default function CommonTabItem({ children, hidden, className }) {
export default function CommonTabItem({
children,
hidden,
className,
label,
value,
...props
}) {
const tabHeading = label || value;

return (
<div role="tabpanel" className={clsx(className)} {...{ hidden }}>
<h5 className="hidden max-w-0 max-h-0">{tabHeading}</h5>
{children}
</div>
);
Expand Down

0 comments on commit 6ef1680

Please sign in to comment.