Skip to content

Commit

Permalink
chore: update the changesets (#4425)
Browse files Browse the repository at this point in the history
  • Loading branch information
salihozdemir authored May 31, 2023
1 parent 5576de9 commit 8092437
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .changeset/eleven-walls-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@refinedev/mantine": minor
---

refactor: fix name and state inconsistency in `<ThemedLayoutV2>`

`useSiderVisible` is deprecated, instead we created a new hook `useThemedLayoutContext` for it. `useThemedLayoutContext` similar to `useSiderVisible` but it returns more meaningful state names. However, `useSiderVisible` is still available for backward compatibility.

Updated `Sider` and `HamburgerMenu` components using `useThemedLayoutContext`.

```tsx
import { useThemedLayoutContext } from '@refinedev/mantine';

const {
siderCollapsed,
setSiderCollapsed,
mobileSiderOpen,
setMobileSiderOpen,
} = useThemedLayoutContext();
```
5 changes: 1 addition & 4 deletions .changeset/forty-peas-accept.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---
"@refinedev/antd": minor
"@refinedev/chakra-ui": minor
"@refinedev/mantine": minor
"@refinedev/mui": minor
---

refactor: fix name and state inconsistency in `<ThemedLayoutV2>`
Expand All @@ -12,7 +9,7 @@ refactor: fix name and state inconsistency in `<ThemedLayoutV2>`
Updated `Sider` and `HamburgerMenu` components using `useThemedLayoutContext`.

```tsx
import { useThemedLayoutContext } from '@refinedev/antd'; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine
import { useThemedLayoutContext } from '@refinedev/chakra-ui';

const {
siderCollapsed,
Expand Down
20 changes: 20 additions & 0 deletions .changeset/hungry-games-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@refinedev/mui": minor
---

refactor: fix name and state inconsistency in `<ThemedLayoutV2>`

`useSiderVisible` is deprecated, instead we created a new hook `useThemedLayoutContext` for it. `useThemedLayoutContext` similar to `useSiderVisible` but it returns more meaningful state names. However, `useSiderVisible` is still available for backward compatibility.

Updated `Sider` and `HamburgerMenu` components using `useThemedLayoutContext`.

```tsx
import { useThemedLayoutContext } from '@refinedev/mui';

const {
siderCollapsed,
setSiderCollapsed,
mobileSiderOpen,
setMobileSiderOpen,
} = useThemedLayoutContext();
```
20 changes: 20 additions & 0 deletions .changeset/rude-squids-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@refinedev/antd": minor
---

refactor: fix name and state inconsistency in `<ThemedLayoutV2>`

`useSiderVisible` is deprecated, instead we created a new hook `useThemedLayoutContext` for it. `useThemedLayoutContext` similar to `useSiderVisible` but it returns more meaningful state names. However, `useSiderVisible` is still available for backward compatibility.

Updated `Sider` and `HamburgerMenu` components using `useThemedLayoutContext`.

```tsx
import { useThemedLayoutContext } from "@refinedev/antd";

const {
siderCollapsed,
setSiderCollapsed,
mobileSiderOpen,
setMobileSiderOpen,
} = useThemedLayoutContext();
```

0 comments on commit 8092437

Please sign in to comment.