Fix/publish style (#732)

This commit is contained in:
DiamondThree
2023-01-13 17:41:13 +08:00
committed by GitHub
parent c95667eafb
commit 911cc3e217
3 changed files with 36 additions and 33 deletions
@@ -55,27 +55,29 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
</StyledPublishExplanation>
)}
</StyledPublishContent>
{workspace.published ? (
<Button
onClick={() => {
togglePublic(false);
}}
type="primary"
shape="circle"
>
{t('Stop publishing')}
</Button>
) : (
<Button
onClick={() => {
togglePublic(true);
}}
type="primary"
shape="circle"
>
{t('Publish to web')}
</Button>
)}
<StyledPublishCopyContainer>
{workspace.published ? (
<Button
onClick={() => {
togglePublic(false);
}}
type="primary"
shape="circle"
>
{t('Stop publishing')}
</Button>
) : (
<Button
onClick={() => {
togglePublic(true);
}}
type="primary"
shape="circle"
>
{t('Publish to web')}
</Button>
)}
</StyledPublishCopyContainer>
</div>
) : (
<StyledPublishContent>