Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Add some menu items shown for everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Nov 10, 2017
1 parent 8f74906 commit 81e3ef3
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/sidebar-menu/items/best.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
This file is a part of libertysoil.org website
Copyright (C) 2017 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import MenuItem from './base';

export default class BestPostsMenuItem extends MenuItem {
static displayName = 'BestPostsMenuItem';

static defaultProps = {
...MenuItem.defaultProps,
className: 'navigation-item--color_blue',
titles: {
xs: 'Best',
rest: 'All Time Best'
},
to: '/best'
};
}
3 changes: 3 additions & 0 deletions src/components/sidebar-menu/items/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ export { default as AllPostsMenuItem } from './all-posts';
export { default as FriendsMenuItem } from './friends';
export { default as LikedMenuItem } from './liked';
export { default as FavouritedMenuItem } from './favourited';
export { default as MostLikedMenuItem } from './most-liked';
export { default as MostFavouritedMenuItem } from './most-favourited';
export { default as BestPostsMenuItem } from './best';
29 changes: 29 additions & 0 deletions src/components/sidebar-menu/items/most-favourited.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
This file is a part of libertysoil.org website
Copyright (C) 2017 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import MenuItem from './base';

export default class MostFavouritedMenuItem extends MenuItem {
static displayName = 'MostFavouritedMenuItem';

static defaultProps = {
...MenuItem.defaultProps,
className: 'navigation-item--color_blue',
title: 'Most Favouried',
to: '/most-favourited'
};
}
29 changes: 29 additions & 0 deletions src/components/sidebar-menu/items/most-liked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
This file is a part of libertysoil.org website
Copyright (C) 2017 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import MenuItem from './base';

export default class MostLikedMenuItem extends MenuItem {
static displayName = 'MostLikedMenuItem';

static defaultProps = {
...MenuItem.defaultProps,
className: 'navigation-item--color_blue',
title: 'Most Liked',
to: '/most-liked'
};
}

0 comments on commit 81e3ef3

Please sign in to comment.