fix: replace pin button

This commit is contained in:
xiaodong zuo
2022-07-26 17:20:13 +08:00
parent c39814047a
commit 68614f86c6
@@ -1,6 +1,6 @@
import { import {
MuiButton as Button, MuiButton as Button,
MuiSwitch as Switch, Switch,
styled, styled,
MuiOutlinedInput as OutlinedInput, MuiOutlinedInput as OutlinedInput,
} from '@toeverything/components/ui'; } from '@toeverything/components/ui';
@@ -155,12 +155,11 @@ export const WorkspaceName = () => {
</WorkspaceNameContainer> </WorkspaceNameContainer>
)} )}
</LeftContainer> </LeftContainer>
<ToggleDisplayContainer> <ToggleDisplayContainer onClick={toggleSpaceSidebar}>
<span>{fixedDisplay ? 'ON' : 'OFF'}</span>
<Switch <Switch
checked={fixedDisplay} checked={fixedDisplay}
onChange={toggleSpaceSidebar} checkedLabel="ON"
size="small" uncheckedLabel="OFF"
/> />
</ToggleDisplayContainer> </ToggleDisplayContainer>
</WorkspaceContainer> </WorkspaceContainer>