chore: Convert <Text /> component to span by default
This commit is contained in:
@@ -43,7 +43,7 @@ function APITokenNew({ onSubmit }: Props) {
|
||||
|
||||
return (
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{t(
|
||||
`Name your token something that will help you to remember it's use in the future, for example "local development", "production", or "continuous integration".`
|
||||
)}
|
||||
|
||||
@@ -25,7 +25,7 @@ function EmptyCollection({ collection }: Props) {
|
||||
|
||||
return (
|
||||
<Centered column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="<em>{{ collectionName }}</em> doesn’t contain any
|
||||
documents yet."
|
||||
|
||||
@@ -78,7 +78,7 @@ const CollectionEdit = ({ collectionId, onSubmit }: Props) => {
|
||||
return (
|
||||
<Flex column>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
You can edit the name and other details at any time, however doing
|
||||
so often might confuse your team mates.
|
||||
|
||||
@@ -119,7 +119,7 @@ class CollectionNew extends React.Component<Props> {
|
||||
const teamSharingEnabled = !!auth.team && auth.team.sharing;
|
||||
return (
|
||||
<form onSubmit={this.handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Collections are for grouping your documents. They work best when
|
||||
organized around a topic or internal team — Product or Engineering
|
||||
|
||||
@@ -69,7 +69,7 @@ function AddGroupsToCollection(props: Props) {
|
||||
return (
|
||||
<Flex column>
|
||||
{can.createGroup ? (
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{t("Can’t find the group you’re looking for?")}{" "}
|
||||
<ButtonLink onClick={handleNewGroupModalOpen}>
|
||||
{t("Create a group")}
|
||||
|
||||
@@ -69,7 +69,7 @@ function AddPeopleToCollection({ collection }: Props) {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{t("Need to add someone who’s not on the team yet?")}{" "}
|
||||
{can.inviteUser ? (
|
||||
<ButtonLink onClick={setInviteModalOpen}>
|
||||
|
||||
@@ -55,7 +55,7 @@ function Insights() {
|
||||
<div>
|
||||
<Content column>
|
||||
<Heading>{t("Stats")}</Heading>
|
||||
<Text type="secondary" size="small">
|
||||
<Text as="p" type="secondary" size="small">
|
||||
<List>
|
||||
{stats.total.words > 0 && (
|
||||
<li>
|
||||
@@ -98,7 +98,7 @@ function Insights() {
|
||||
<>
|
||||
<Content column>
|
||||
<Heading>{t("Contributors")}</Heading>
|
||||
<Text type="secondary" size="small">
|
||||
<Text as="p" type="secondary" size="small">
|
||||
{t(`Created`)}{" "}
|
||||
<Time dateTime={document.createdAt} addSuffix />.
|
||||
<br />
|
||||
@@ -130,7 +130,7 @@ function Insights() {
|
||||
</Content>
|
||||
<Content column>
|
||||
<Heading>{t("Views")}</Heading>
|
||||
<Text type="secondary" size="small">
|
||||
<Text as="p" type="secondary" size="small">
|
||||
{documentViews.length <= 1
|
||||
? t("No one else has viewed yet")
|
||||
: t(
|
||||
@@ -157,10 +157,10 @@ function Insights() {
|
||||
{can.updateInsights && (
|
||||
<Manage>
|
||||
<Flex column>
|
||||
<Text size="small" weight="bold">
|
||||
<Text as="p" size="small" weight="bold">
|
||||
{t("Viewer insights")}
|
||||
</Text>
|
||||
<Text type="secondary" size="small">
|
||||
<Text as="p" type="secondary" size="small">
|
||||
{t(
|
||||
"As an admin you can manage if team members can see who has viewed this document"
|
||||
)}
|
||||
|
||||
@@ -83,7 +83,7 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
||||
|
||||
return (
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{document.isTemplate ? (
|
||||
<Trans
|
||||
defaults="Are you sure you want to delete the <em>{{ documentTitle }}</em> template?"
|
||||
@@ -119,7 +119,7 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
||||
)}
|
||||
</Text>
|
||||
{canArchive && (
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
If you’d like the option of referencing or restoring the{" "}
|
||||
{{
|
||||
|
||||
@@ -63,7 +63,7 @@ function DocumentReparent({ collection, item, onSubmit, onCancel }: Props) {
|
||||
return (
|
||||
<Flex column>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="Heads up – moving the document <em>{{ title }}</em> to the <em>{{ newCollectionName }}</em> collection will grant all members of the workspace <em>{{ newPermission }}</em>, they currently have {{ prevPermission }}."
|
||||
values={{
|
||||
|
||||
@@ -45,7 +45,7 @@ function GroupEdit({ group, onSubmit }: Props) {
|
||||
|
||||
return (
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
You can edit the name of this group at any time, however doing so too
|
||||
often might confuse your team mates.
|
||||
|
||||
@@ -75,7 +75,7 @@ function AddPeopleToGroup(props: Props) {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{t(
|
||||
"Add members below to give them access to the group. Need to add someone who’s not yet a member?"
|
||||
)}{" "}
|
||||
|
||||
@@ -51,7 +51,7 @@ function GroupMembers({ group }: Props) {
|
||||
<Flex column>
|
||||
{can.update ? (
|
||||
<>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="Add and remove members to the <em>{{groupName}}</em> group. Members of the group will have access to any collections this group has been added to."
|
||||
values={{
|
||||
@@ -74,7 +74,7 @@ function GroupMembers({ group }: Props) {
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="Listing members of the <em>{{groupName}}</em> group."
|
||||
values={{
|
||||
|
||||
@@ -50,7 +50,7 @@ function GroupNew({ onSubmit }: Props) {
|
||||
return (
|
||||
<>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Groups are for organizing your team. They work best when centered
|
||||
around a function or a responsibility — Support or Engineering for
|
||||
@@ -68,7 +68,7 @@ function GroupNew({ onSubmit }: Props) {
|
||||
flex
|
||||
/>
|
||||
</Flex>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>You’ll be able to add people to the group next.</Trans>
|
||||
</Text>
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ function Invite({ onSubmit }: Props) {
|
||||
return (
|
||||
<form onSubmit={handleSubmit}>
|
||||
{team.guestSignin ? (
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="Invite members or guests to join your workspace. They can sign in with {{signinMethods}} or use their email address."
|
||||
values={{
|
||||
@@ -170,7 +170,7 @@ function Invite({ onSubmit }: Props) {
|
||||
{collectionAccessNote}
|
||||
</Text>
|
||||
) : (
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="Invite members to join your workspace. They will need to sign in with {{signinMethods}}."
|
||||
values={{
|
||||
|
||||
@@ -247,7 +247,7 @@ function Search(props: Props) {
|
||||
{showEmpty && (
|
||||
<Fade>
|
||||
<Centered column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{t("No documents found for your search filters.")}
|
||||
</Text>
|
||||
</Centered>
|
||||
|
||||
@@ -43,7 +43,7 @@ function ApiKeys() {
|
||||
}
|
||||
>
|
||||
<Heading>{t("API Tokens")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="You can create an unlimited amount of personal tokens to authenticate
|
||||
with the API. Tokens have the same permissions as your user account.
|
||||
|
||||
@@ -136,7 +136,7 @@ function Details() {
|
||||
<ThemeProvider theme={newTheme}>
|
||||
<Scene title={t("Details")} icon={<TeamIcon />}>
|
||||
<Heading>{t("Details")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
These settings affect the way that your workspace appears to
|
||||
everyone on the team.
|
||||
|
||||
@@ -34,7 +34,7 @@ function Export() {
|
||||
return (
|
||||
<Scene title={t("Export")} icon={<DownloadIcon />}>
|
||||
<Heading>{t("Export")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="A full export might take some time, consider exporting a single document or collection. The exported data is a zip of your documents in Markdown format. You may leave this page once the export has started – if you have notifications enabled, we will email a link to <em>{{ userEmail }}</em> when it’s complete."
|
||||
values={{
|
||||
|
||||
@@ -29,7 +29,7 @@ function Features() {
|
||||
return (
|
||||
<Scene title={t("Features")} icon={<BeakerIcon />}>
|
||||
<Heading>{t("Features")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Manage optional and beta features. Changing these settings will affect
|
||||
the experience for all members of the workspace.
|
||||
|
||||
@@ -78,7 +78,7 @@ function GoogleAnalytics() {
|
||||
<Scene title={t("Google Analytics")} icon={<GoogleIcon />}>
|
||||
<Heading>{t("Google Analytics")}</Heading>
|
||||
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Add a Google Analytics 4 measurement ID to send document views and
|
||||
analytics from the workspace to your own Google Analytics account.
|
||||
|
||||
@@ -48,7 +48,7 @@ function Groups() {
|
||||
}
|
||||
>
|
||||
<Heading>{t("Groups")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Groups can be used to organize and manage the people on your team.
|
||||
</Trans>
|
||||
|
||||
@@ -28,7 +28,7 @@ function Import() {
|
||||
return (
|
||||
<Scene title={t("Import")} icon={<NewDocumentIcon />}>
|
||||
<Heading>{t("Import")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Quickly transfer your existing documents, pages, and files from other
|
||||
tools and services into {{ appName }}. You can also drag and drop any
|
||||
|
||||
@@ -167,7 +167,7 @@ function Members() {
|
||||
wide
|
||||
>
|
||||
<Heading>{t("Members")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Everyone that has signed into {{ appName }} is listed here. It’s
|
||||
possible that there are other users who have access through{" "}
|
||||
|
||||
@@ -131,7 +131,7 @@ function Notifications() {
|
||||
</Trans>
|
||||
</Notice>
|
||||
)}
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>Manage when and where you receive email notifications.</Trans>
|
||||
</Text>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ function Preferences() {
|
||||
return (
|
||||
<Scene title={t("Preferences")} icon={<SettingsIcon />}>
|
||||
<Heading>{t("Preferences")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>Manage settings that affect your personal experience.</Trans>
|
||||
</Text>
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ const Profile = () => {
|
||||
return (
|
||||
<Scene title={t("Profile")} icon={<ProfileIcon />}>
|
||||
<Heading>{t("Profile")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>Manage how you appear to other members of the workspace.</Trans>
|
||||
</Text>
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ function Security() {
|
||||
return (
|
||||
<Scene title={t("Security")} icon={<PadlockIcon />}>
|
||||
<Heading>{t("Security")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Settings that impact the access, security, and content of your
|
||||
workspace.
|
||||
@@ -164,7 +164,7 @@ function Security() {
|
||||
color={provider.isActive ? theme.accent : undefined}
|
||||
checked={provider.isActive}
|
||||
/>{" "}
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
{provider.isActive ? t("Connected") : t("Disabled")}
|
||||
</Text>
|
||||
</Flex>
|
||||
|
||||
@@ -86,7 +86,7 @@ function Shares() {
|
||||
</>
|
||||
)}
|
||||
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Documents that have been shared are listed below. Anyone that has the
|
||||
public link can access a read-only version of the document until the
|
||||
|
||||
@@ -34,7 +34,7 @@ function Templates() {
|
||||
}
|
||||
>
|
||||
<Heading>{t("Templates")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
You can create templates to help your team create consistent and
|
||||
accurate documentation.
|
||||
|
||||
@@ -28,7 +28,7 @@ function Zapier() {
|
||||
key="zapier-styles"
|
||||
/>
|
||||
</Helmet>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Zapier is a platform that allows {{ appName }} to easily integrate
|
||||
with thousands of other business tools. Automate your workflows, sync
|
||||
|
||||
@@ -33,7 +33,7 @@ const HelpDisclosure: React.FC<Props> = ({ title, children }: Props) => {
|
||||
)}
|
||||
</Disclosure>
|
||||
<HelpContent {...disclosure}>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<br />
|
||||
{children}
|
||||
</Text>
|
||||
|
||||
@@ -14,7 +14,7 @@ function ImportJSONDialog() {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<DropToImport
|
||||
onSubmit={dialogs.closeAllModals}
|
||||
format={FileOperationFormat.JSON}
|
||||
|
||||
@@ -14,7 +14,7 @@ function ImportMarkdownDialog() {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<DropToImport
|
||||
onSubmit={dialogs.closeAllModals}
|
||||
format={FileOperationFormat.MarkdownZip}
|
||||
|
||||
@@ -13,7 +13,7 @@ function ImportNotionDialog() {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<DropToImport
|
||||
onSubmit={dialogs.closeAllModals}
|
||||
format={FileOperationFormat.Notion}
|
||||
|
||||
@@ -74,7 +74,11 @@ const SettingRow: React.FC<Props> = ({
|
||||
<Label as="h3">
|
||||
<label htmlFor={name}>{label}</label>
|
||||
</Label>
|
||||
{description && <Text type="secondary">{description}</Text>}
|
||||
{description && (
|
||||
<Text as="p" type="secondary">
|
||||
{description}
|
||||
</Text>
|
||||
)}
|
||||
</Column>
|
||||
<Column>{children}</Column>
|
||||
</Row>
|
||||
|
||||
@@ -67,7 +67,7 @@ function TeamDelete({ onSubmit }: Props) {
|
||||
<form onSubmit={formHandleSubmit(handleSubmit)}>
|
||||
{isWaitingCode ? (
|
||||
<>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
A confirmation code has been sent to your email address, please
|
||||
enter the code below to permanently destroy this workspace.
|
||||
@@ -84,7 +84,7 @@ function TeamDelete({ onSubmit }: Props) {
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Deleting the <strong>{{ workspaceName }}</strong> workspace will
|
||||
destroy all collections, documents, users, and associated data.
|
||||
|
||||
@@ -65,7 +65,7 @@ function TeamNew({ user }: Props) {
|
||||
/>
|
||||
</Flex>
|
||||
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans
|
||||
defaults="You are creating a new workspace using your current account — <em>{{email}}</em>"
|
||||
values={{
|
||||
|
||||
@@ -65,7 +65,7 @@ function UserDelete({ onSubmit }: Props) {
|
||||
<form onSubmit={formHandleSubmit(handleSubmit)}>
|
||||
{isWaitingCode ? (
|
||||
<>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
A confirmation code has been sent to your email address, please
|
||||
enter the code below to permanently destroy your account.
|
||||
@@ -82,7 +82,7 @@ function UserDelete({ onSubmit }: Props) {
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<Trans>
|
||||
Are you sure? Deleting your account will destroy identifying data
|
||||
associated with your user and cannot be undone. You will be
|
||||
|
||||
Reference in New Issue
Block a user