chore: update publishPage style
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
|||||||
StyledPublishCopyContainer,
|
StyledPublishCopyContainer,
|
||||||
StyledPublishExplanation,
|
StyledPublishExplanation,
|
||||||
StyledSettingH2,
|
StyledSettingH2,
|
||||||
|
StyledStopPublishContainer,
|
||||||
} from './style';
|
} from './style';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Button } from '@/ui/button';
|
import { Button } from '@/ui/button';
|
||||||
@@ -42,7 +43,9 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
|
|||||||
<StyledPublishExplanation>
|
<StyledPublishExplanation>
|
||||||
{t('Publishing')}
|
{t('Publishing')}
|
||||||
</StyledPublishExplanation>
|
</StyledPublishExplanation>
|
||||||
<StyledSettingH2>{t('Share with link')}</StyledSettingH2>
|
<StyledSettingH2 marginTop={48}>
|
||||||
|
{t('Share with link')}
|
||||||
|
</StyledSettingH2>
|
||||||
<StyledPublishCopyContainer>
|
<StyledPublishCopyContainer>
|
||||||
<Input width={500} value={shareUrl} disabled={true}></Input>
|
<Input width={500} value={shareUrl} disabled={true}></Input>
|
||||||
<StyledCopyButtonContainer>
|
<StyledCopyButtonContainer>
|
||||||
@@ -54,24 +57,27 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<StyledPublishExplanation>
|
<StyledPublishExplanation>
|
||||||
{'Publishing Description'}
|
{t('Publishing Description')}
|
||||||
</StyledPublishExplanation>
|
</StyledPublishExplanation>
|
||||||
)}
|
)}
|
||||||
</StyledPublishContent>
|
</StyledPublishContent>
|
||||||
<StyledPublishCopyContainer>
|
|
||||||
{workspace.published ? (
|
{workspace.published ? (
|
||||||
|
<StyledStopPublishContainer>
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
setLoaded(false);
|
setLoaded(false);
|
||||||
await togglePublic(false);
|
await togglePublic(false);
|
||||||
setLoaded(true);
|
setLoaded(true);
|
||||||
}}
|
}}
|
||||||
type="primary"
|
type="danger"
|
||||||
shape="circle"
|
shape="circle"
|
||||||
>
|
>
|
||||||
{t('Stop publishing')}
|
{t('Stop publishing')}
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
</StyledStopPublishContainer>
|
||||||
|
) : (
|
||||||
|
<StyledPublishCopyContainer>
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
setLoaded(false);
|
setLoaded(false);
|
||||||
@@ -83,8 +89,8 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
|
|||||||
>
|
>
|
||||||
{t('Publish to web')}
|
{t('Publish to web')}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
</StyledPublishCopyContainer>
|
||||||
</StyledPublishCopyContainer>
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<StyledPublishContent>
|
<StyledPublishContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user