2021-06-18 00:52:21 +02:00
|
|
|
// @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,
|
|
|
|
}}
|
|
|
|
>
|
2021-06-18 01:08:12 +02:00
|
|
|
Could not get a user ID. Account functions will be unavailable. Try again in a bit.
|
2021-06-18 00:52:21 +02:00
|
|
|
</I18nMessage>
|
|
|
|
}
|
|
|
|
actionText={__('Refresh')}
|
|
|
|
onClick={() => window.location.reload()}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|