fix: replace pin button

This commit is contained in:
xiaodong zuo 2022-07-26 17:20:13 +08:00
parent c39814047a
commit 68614f86c6

View File

@ -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>