mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-22 21:09:36 +02:00
Changed some messages and buttons to make it easier to open bookmarks editor
This commit is contained in:
parent
2ca90a18e1
commit
068c8ab2e7
10 changed files with 76 additions and 82 deletions
|
@ -15,11 +15,8 @@ import { actionCreators } from '../../../store';
|
|||
// Typescript
|
||||
import { Bookmark, Category } from '../../../interfaces';
|
||||
|
||||
// CSS
|
||||
import classes from './Table.module.css';
|
||||
|
||||
// UI
|
||||
import { Table } from '../../UI';
|
||||
import { Message, Table } from '../../UI';
|
||||
import { TableActions } from '../../Actions/TableActions';
|
||||
import { bookmarkTemplate } from '../../../utility';
|
||||
|
||||
|
@ -108,18 +105,14 @@ export const BookmarksTable = ({ openFormForUpdating }: Props): JSX.Element => {
|
|||
return (
|
||||
<Fragment>
|
||||
{!categoryInEdit ? (
|
||||
<div className={classes.Message}>
|
||||
<p>
|
||||
Switch to grid view and click on the name of category you want to
|
||||
edit
|
||||
</p>
|
||||
</div>
|
||||
<Message isPrimary={false}>
|
||||
Switch to grid view and click on the name of category you want to edit
|
||||
</Message>
|
||||
) : (
|
||||
<div className={classes.Message}>
|
||||
<p>
|
||||
Editing bookmarks from <span>{categoryInEdit.name}</span> category
|
||||
</p>
|
||||
</div>
|
||||
<Message isPrimary={false}>
|
||||
Editing bookmarks from <span>{categoryInEdit.name}</span>
|
||||
category
|
||||
</Message>
|
||||
)}
|
||||
|
||||
{categoryInEdit && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue