mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 04:56:43 +03:00
fix: replace pin button
This commit is contained in:
parent
c39814047a
commit
68614f86c6
@ -1,6 +1,6 @@
|
||||
import {
|
||||
MuiButton as Button,
|
||||
MuiSwitch as Switch,
|
||||
Switch,
|
||||
styled,
|
||||
MuiOutlinedInput as OutlinedInput,
|
||||
} from '@toeverything/components/ui';
|
||||
@ -155,12 +155,11 @@ export const WorkspaceName = () => {
|
||||
</WorkspaceNameContainer>
|
||||
)}
|
||||
</LeftContainer>
|
||||
<ToggleDisplayContainer>
|
||||
<span>{fixedDisplay ? 'ON' : 'OFF'}</span>
|
||||
<ToggleDisplayContainer onClick={toggleSpaceSidebar}>
|
||||
<Switch
|
||||
checked={fixedDisplay}
|
||||
onChange={toggleSpaceSidebar}
|
||||
size="small"
|
||||
checkedLabel="ON"
|
||||
uncheckedLabel="OFF"
|
||||
/>
|
||||
</ToggleDisplayContainer>
|
||||
</WorkspaceContainer>
|
||||
|
Loading…
Reference in New Issue
Block a user