mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
fix stlye issue
This commit is contained in:
1 parent
5bdafe721d
commit
4d973ba40a
3 files changed
+13
-9
No files matched your search
@@ -269,7 +269,7 @@ function InnerPublicAccess(
|
||||
options={expiryOptions}
|
||||
value={expiryType}
|
||||
onChange={handleExpiryTypeChange}
|
||||
label={t("Expiration Date")}
|
||||
label={t("Link Expiration")}
|
||||
/>
|
||||
{expiryType === ExpiryType.Custom ? (
|
||||
<ExpiryDatePicker
|
||||
|
||||
@@ -40,6 +40,7 @@ import {
|
||||
ExpiryValues,
|
||||
calculateExpiryDate,
|
||||
} from "~/scenes/ApiKeyNew/utils";
|
||||
import Container from "~/scenes/Document/components/Container";
|
||||
|
||||
type Props = {
|
||||
/** The document to share. */
|
||||
@@ -317,15 +318,17 @@ function PublicAccess(
|
||||
options={expiryOptions}
|
||||
value={expiryType}
|
||||
onChange={handleExpiryTypeChange}
|
||||
label={t("Expiration")}
|
||||
label={t("Link Expiration")}
|
||||
/>
|
||||
{expiryType === ExpiryType.Custom ? (
|
||||
<ExpiryDatePicker
|
||||
selectedDate={expiresAt}
|
||||
onSelect={handleSelectCustomDate}
|
||||
/>
|
||||
<Container style={{ marginTop: 16 }}>
|
||||
<ExpiryDatePicker
|
||||
selectedDate={expiresAt}
|
||||
onSelect={handleSelectCustomDate}
|
||||
/>
|
||||
</Container>
|
||||
) : (
|
||||
<Text type="secondary" size="small">
|
||||
<Text type="secondary" size="small" style={{ marginTop: 25 }}>
|
||||
{expiresAt
|
||||
? `${dateToExpiry(expiresAt.toISOString(), t, userLocale)}.`
|
||||
: `${t("Never expires")}.`}
|
||||
@@ -354,6 +357,7 @@ function PublicAccess(
|
||||
const StyledExpirySelect = styled(InputSelect)`
|
||||
width: 150px !important;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
`;
|
||||
|
||||
export default observer(React.forwardRef(PublicAccess));
|
||||
@@ -541,7 +541,7 @@
|
||||
"Publish to web": "Publish to web",
|
||||
"Allow anyone with the link to access": "Allow anyone with the link to access",
|
||||
"Publish to internet": "Publish to internet",
|
||||
"Expiration Date": "Expiration Date",
|
||||
"Link Expiration": "Link Expiration",
|
||||
"Never expires": "Never expires",
|
||||
"All documents in this collection will be shared on the web, including any new documents added later": "All documents in this collection will be shared on the web, including any new documents added later",
|
||||
"Invite": "Invite",
|
||||
@@ -600,7 +600,6 @@
|
||||
"Leave": "Leave",
|
||||
"Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the containing collection, <2>{sharedParent.sourceTitle}</2>, is shared",
|
||||
"Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared": "Anyone with the link can access because the parent document, <2>{sharedParent.sourceTitle}</2>, is shared",
|
||||
"Expiration": "Expiration",
|
||||
"Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future",
|
||||
"{{ userName }} was added to the document": "{{ userName }} was added to the document",
|
||||
"{{ count }} people added to the document": "{{ count }} person added to the document",
|
||||
@@ -849,6 +848,7 @@
|
||||
"API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.",
|
||||
"Scopes": "Scopes",
|
||||
"Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access": "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access",
|
||||
"Expiration": "Expiration",
|
||||
"7 days": "7 days",
|
||||
"30 days": "30 days",
|
||||
"60 days": "60 days",
|
||||
|
||||
Reference in new issue
Block a user