Skip to content

Commit

Permalink
Minor style corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
hisorange committed Oct 23, 2022
1 parent 648f29f commit 49be1f7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/modules/admin/component/menu-block.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function MenuBlock({
className,
}: Props) {
return (
<div className={'menu-block ' + className}>
<div className={'menu-block ' + (className ?? '')}>
<header style={style}>{title}</header>
<section>{children}</section>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/modules/content/component/_router.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Layout, Spin } from 'antd';
import Sider from 'antd/lib/layout/Sider';
import { Suspense } from 'react';
import { generatePath, Route, Routes, useNavigate } from 'react-router';
import MenuBlock from '../../admin/component/menu-block.component';
import FavoriteSchemasComponent from '../../schema/component/favorites.component';
import SchemaTreeComponent from '../../schema/component/tree.component';
import ContentListComponent from './list.component';
Expand Down Expand Up @@ -31,7 +30,6 @@ export default function ContentRouterComponent() {
<Suspense fallback={<Spin />}>
<FavoriteSchemasComponent />
<SchemaTreeComponent onSelect={onSchemaSelect} />
<MenuBlock title="Content Transactions"></MenuBlock>
</Suspense>
</Sider>

Expand Down
2 changes: 1 addition & 1 deletion src/modules/schema/component/favorites.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function FavoriteSchemasComponent() {
}

return (
<MenuBlock title="Favorite Content">
<MenuBlock title="Favorite Content" style={{ borderTop: 0 }}>
<Menu className="compact" selectable={false}>
{schemas
.filter(s => !!s?.meta?.isFavorite)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/schema/component/tree.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function SchemaTreeComponent({ onSelect }: Props) {

return (
<>
<MenuBlock title="Explorer" className="-mb-1 test--content-tree">
<MenuBlock title="Content Explorer" className="-mb-1 test--content-tree">
<div className="px-2 py-2">
<Input
placeholder="Quick Filter"
Expand Down

0 comments on commit 49be1f7

Please sign in to comment.