Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed Nov 26, 2024
1 parent 008d0e4 commit 8ef8069
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/admin/components/page-active.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,15 @@ export const PageActive = ( props: IActiveData ): ReactElement => {
<FlexItem>
{ props.reassign_to && (
<>
<strong>{ __( 'Content Attributed', 'temporary-login' ) }:</strong> <a href={ props.reassign_user_profile_link }>{ props.reassign_to }</a>
<strong>
{ __(
'Content Attributed:',
'temporary-login'
) }
</strong>{ ' ' }
<a href={ props.reassign_user_profile_link }>
{ props.reassign_to }
</a>
{ '. ' }
</>
) }
Expand Down
8 changes: 6 additions & 2 deletions src/admin/components/page-inactive.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactElement } from 'react';
import { Button, CheckboxControl, ExternalLink, Icon, Notice } from '@wordpress/components';
import { Button, CheckboxControl, Notice } from '@wordpress/components';
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { QUERY_KEY } from '../common/constants';
import { __, sprintf } from '@wordpress/i18n';
Expand Down Expand Up @@ -42,7 +42,10 @@ export const PageInactive = (): ReactElement => {
<div>
<CheckboxControl
__nextHasNoMarginBottom
label={ __( 'Save content after access expires', 'temporary-login' ) }
label={ __(
'Save content after access expires',
'temporary-login'
) }
checked={ isKeepUserPosts }
onChange={ setIsKeepUserPosts }
/>
Expand Down Expand Up @@ -87,6 +90,7 @@ export const PageInactive = (): ReactElement => {

const ContentAttributedExplain = ( { displayName } ) => {
const formattedMessage = sprintf(
/* translators: %s: user display name */
__(
'Content created by the temporary login user is temporary. To save it, select the option provided. The content will then be attributed to the %s user once the temporary access expires.',
'temporary-login'
Expand Down

0 comments on commit 8ef8069

Please sign in to comment.