Skip to content

Commit

Permalink
revert(versioned_docs): revert changes in versioned_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed Jun 12, 2024
1 parent 6498462 commit 2d0cde5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const CustomSider: React.FC = () => {
const isSelected = route === selectedKey;
const isRoute = !(parentName !== undefined && children.length === 0);
return (
<CanAccess key={route} resource={name} action="list">
<CanAccess key={route} resource={name.toLowerCase()} action="list">
<Menu.Item
key={route}
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export const CustomSider: React.FC = () => {
const isSelected = route === selectedKey;
const isRoute = !(parentName !== undefined && children.length === 0);
return (
<CanAccess key={route} resource={name} action="list">
<CanAccess key={route} resource={name.toLowerCase()} action="list">
<Menu.Item
key={route}
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const CustomSider: React.FC = () => {
const isSelected = route === selectedKey;
const isRoute = !(parentName !== undefined && children.length === 0);
return (
<CanAccess key={route} resource={name} action="list">
<CanAccess key={route} resource={name.toLowerCase()} action="list">
<Menu.Item
key={route}
style={{
Expand Down Expand Up @@ -331,7 +331,7 @@ export const CustomSider: React.FC = () => {
const isSelected = route === selectedKey;
const isRoute = !(parentName !== undefined && children.length === 0);
return (
<CanAccess key={route} resource={name} action="list">
<CanAccess key={route} resource={name.toLowerCase()} action="list">
<Menu.Item
key={route}
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const CustomSider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{
resource: item,
Expand All @@ -193,7 +193,7 @@ const CustomSider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{
resource: item,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const Sider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{
resource: item,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const CustomSider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{
resource: item,
Expand Down Expand Up @@ -812,7 +812,7 @@ const CustomSider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{
resource: item,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const CustomSider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{
resource: item,
Expand Down Expand Up @@ -276,7 +276,7 @@ const CustomSider: React.FC<RefineLayoutSiderProps> = ({ render }) => {
return (
<CanAccess
key={route}
resource={name}
resource={name.toLowerCase()}
action="list"
params={{ resource: item }}
>
Expand Down

0 comments on commit 2d0cde5

Please sign in to comment.