Skip to content

Commit

Permalink
🎨 chore: 重构代码结构
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Apr 20, 2024
1 parent b10adfd commit d8f97e5
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { DraggablePanel } from '@lobehub/ui';
import { createStyles } from 'antd-style';
import { memo, useState } from 'react';
import { useState } from 'react';

import Header from './Header';
import SessionList from './SessionList/List';
import List from './List';

const useStyles = createStyles(({ css, token }) => ({
content: css`
Expand All @@ -25,8 +25,8 @@ const SideBar = () => {
return (
<DraggablePanel
className={styles.content}
defaultSize={{ width: 280 }}
maxWidth={316}
defaultSize={{ width: 360 }}
maxWidth={420}
minWidth={280}
mode={'fixed'}
placement={'left'}
Expand All @@ -38,10 +38,10 @@ const SideBar = () => {
value={searchName}
/>
<div className={styles.list}>
<SessionList filter={searchName} />
<List filter={searchName} />
</div>
</DraggablePanel>
);
};

export default memo(SideBar);
export default SideBar;
File renamed without changes.

0 comments on commit d8f97e5

Please sign in to comment.