import React from 'react'; import useSWR from 'swr'; import LoadingSpinner from '../Common/LoadingSpinner'; import Badge from '../Common/Badge'; import { FormattedDate, FormattedRelativeTime } from 'react-intl'; import Button from '../Common/Button'; import { hasPermission } from '../../../server/lib/permissions'; import { Permission } from '../../hooks/useUser'; const SettingsJobs: React.FC = () => { const { data, error } = useSWR<{ name: string; nextExecutionTime: string }[]>( '/api/v1/settings/jobs' ); if (!data && !error) { return ; } return (
{data?.map((job, index) => ( ))}
Job Name Next Execution
{job.name}
); }; export default SettingsJobs;