Fix jwt-token
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import api from '../services/api';
|
||||
import { format } from 'date-fns';
|
||||
import { t } from '../utils/tempTranslations';
|
||||
import {
|
||||
PlusIcon,
|
||||
BellIcon,
|
||||
@@ -106,6 +107,7 @@ const Alerts = () => {
|
||||
return (
|
||||
<div className="flex items-center justify-center h-64">
|
||||
<div className="animate-spin rounded-full h-32 w-32 border-b-2 border-primary-600"></div>
|
||||
<span className="ml-4 text-gray-600">{t('alerts.loading')}</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -115,10 +117,10 @@ const Alerts = () => {
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900">
|
||||
Alert Management
|
||||
{t('alerts.title')}
|
||||
</h3>
|
||||
<p className="mt-1 text-sm text-gray-500">
|
||||
Configure and monitor alert rules for drone detections
|
||||
{t('alerts.description')}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
@@ -126,7 +128,7 @@ const Alerts = () => {
|
||||
className="btn btn-primary flex items-center space-x-2"
|
||||
>
|
||||
<PlusIcon className="h-4 w-4" />
|
||||
<span>Create Alert Rule</span>
|
||||
<span>{t('alerts.createAlert')}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user