25 lines
562 B
JavaScript
25 lines
562 B
JavaScript
// @flow
|
|
import { SITE_NAME } from 'config';
|
|
import React from 'react';
|
|
import Nag from 'component/common/nag';
|
|
import I18nMessage from 'component/i18nMessage';
|
|
|
|
export default function NagNoUser() {
|
|
|
|
return (
|
|
<Nag
|
|
type="error"
|
|
message={
|
|
<I18nMessage
|
|
tokens={{
|
|
SITE_NAME,
|
|
}}
|
|
>
|
|
Could not get a user ID. Account functions will be unavailable. Try again in a bit.
|
|
</I18nMessage>
|
|
}
|
|
actionText={__('Refresh')}
|
|
onClick={() => window.location.reload()}
|
|
/>
|
|
);
|
|
}
|