|
@@ -22,45 +22,11 @@ import { navigateToListViewPage, useConstructor } from '../../constants/function
|
|
import { getArticlesByCategory, getCategories } from '../../api/data';
|
|
import { getArticlesByCategory, getCategories } from '../../api/data';
|
|
import { BASE_URL } from '../../api/urls';
|
|
import { BASE_URL } from '../../api/urls';
|
|
|
|
|
|
-const data = [
|
|
|
|
- {
|
|
|
|
- title: 'Sector Update',
|
|
|
|
- icon: 'area-graph',
|
|
|
|
- subTitles: ['Banking', 'Retail', 'Transport', 'Banking', 'Food & Drink'],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'Regional Update',
|
|
|
|
- icon: 'network',
|
|
|
|
- subTitles: ['Banking', 'Retail', 'Transport', 'Banking', 'Food & Drink'],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'Finance',
|
|
|
|
- icon: 'database',
|
|
|
|
- subTitles: ['Banking', 'Retail', 'Transport', 'Banking', 'Food & Drink'],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'Economic',
|
|
|
|
- icon: 'line-graph',
|
|
|
|
- subTitles: ['Banking', 'Retail', 'Transport', 'Banking', 'Food & Drink'],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'Miscellaneous',
|
|
|
|
- icon: 'documents',
|
|
|
|
- subTitles: ['Banking', 'Retail', 'Transport', 'Banking', 'Food & Drink'],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'RSS',
|
|
|
|
- icon: 'rss',
|
|
|
|
- subTitles: ['Banking', 'Retail', 'Transport', 'Banking', 'Food & Drink'],
|
|
|
|
- },
|
|
|
|
-];
|
|
|
|
|
|
|
|
const SidebarPage = ({ navigation, route }) => {
|
|
const SidebarPage = ({ navigation, route }) => {
|
|
|
|
|
|
const [data, setData] = React.useState([])
|
|
const [data, setData] = React.useState([])
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
const [expandedId, setExpandedId] = React.useState('');
|
|
const [expandedId, setExpandedId] = React.useState('');
|
|
|
|
|
|
const handleAccordionPress = accordionId => {
|
|
const handleAccordionPress = accordionId => {
|