You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
// Copyright (C) 2020 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
import Text from 'antd/lib/typography/Text';
|
|
import { Row, Col } from 'antd/lib/grid';
|
|
import Icon from 'antd/lib/icon';
|
|
|
|
import { EmptyTasksIcon } from 'icons';
|
|
|
|
export default function EmptyListComponent(): JSX.Element {
|
|
return (
|
|
<div className='cvat-empty-tasks-list'>
|
|
<Row type='flex' justify='center' align='middle'>
|
|
<Col>
|
|
<Icon className='cvat-empty-tasks-icon' component={EmptyTasksIcon} />
|
|
</Col>
|
|
</Row>
|
|
<Row type='flex' justify='center' align='middle'>
|
|
<Col>
|
|
<Text strong>No tasks created yet ...</Text>
|
|
</Col>
|
|
</Row>
|
|
<Row type='flex' justify='center' align='middle'>
|
|
<Col>
|
|
<Text type='secondary'>To get started with your annotation project</Text>
|
|
</Col>
|
|
</Row>
|
|
<Row type='flex' justify='center' align='middle'>
|
|
<Col>
|
|
<Link to='/tasks/create'>create a new task</Link>
|
|
<Text type='secondary'> or try to </Text>
|
|
<Link to='/projects/create'>create a new project</Link>
|
|
</Col>
|
|
</Row>
|
|
</div>
|
|
);
|
|
}
|