Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit ce2ceb9e
authored
2024-06-06 11:30:41 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
9b78055a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
components/home/SearchBar.js
components/layout/Header.js
components/listing/ListingItems.js
components/home/SearchBar.js
View file @
ce2ceb9
...
@@ -13,7 +13,7 @@ const SearchBar = () => {
...
@@ -13,7 +13,7 @@ const SearchBar = () => {
const
[
options
,
setoptions
]
=
useState
([]);
const
[
options
,
setoptions
]
=
useState
([]);
const
dispatch
=
useDispatch
();
const
dispatch
=
useDispatch
();
const
router
=
useRouter
();
const
router
=
useRouter
();
console
.
log
(
"options"
,
options
);
//
console.log("options", options);
return
(
return
(
<>
<>
<
section
className
=
"searchbar-session"
>
<
section
className
=
"searchbar-session"
>
...
@@ -67,7 +67,7 @@ const SearchBar = () => {
...
@@ -67,7 +67,7 @@ const SearchBar = () => {
return
{
id
:
item
.
id
,
label
:
`
${
item
.
name
}
- experience`
};
return
{
id
:
item
.
id
,
label
:
`
${
item
.
name
}
- experience`
};
});
});
}
}
console
.
log
(
"opts"
,
opts
);
//
console.log("opts", opts);
setoptions
(
opts
);
setoptions
(
opts
);
setopen
(
true
);
setopen
(
true
);
}
}
...
...
components/layout/Header.js
View file @
ce2ceb9
...
@@ -17,7 +17,7 @@ const Header = () => {
...
@@ -17,7 +17,7 @@ const Header = () => {
const
{
endUser
}
=
useSelector
(
state
=>
state
.
endUser
);
const
{
endUser
}
=
useSelector
(
state
=>
state
.
endUser
);
const
[
open
,
setopen
]
=
useState
(
false
);
const
[
open
,
setopen
]
=
useState
(
false
);
const
[
options
,
setoptions
]
=
useState
([]);
const
[
options
,
setoptions
]
=
useState
([]);
console
.
log
(
"options"
,
options
);
//
console.log("options", options);
const
dispatch
=
useDispatch
();
const
dispatch
=
useDispatch
();
// console.log("user", loadedUser);
// console.log("user", loadedUser);
const
[
isSticky
,
setIsSticky
]
=
useState
(
false
);
const
[
isSticky
,
setIsSticky
]
=
useState
(
false
);
...
@@ -121,7 +121,7 @@ const Header = () => {
...
@@ -121,7 +121,7 @@ const Header = () => {
return
{
id
:
item
.
id
,
label
:
`
${
item
.
name
}
- experience`
};
return
{
id
:
item
.
id
,
label
:
`
${
item
.
name
}
- experience`
};
});
});
}
}
console
.
log
(
"opts"
,
opts
);
//
console.log("opts", opts);
setoptions
(
opts
);
setoptions
(
opts
);
setopen
(
true
);
setopen
(
true
);
}
}
...
...
components/listing/ListingItems.js
View file @
ce2ceb9
...
@@ -118,7 +118,7 @@ const ListingItems = ({ allActivitiesData, loading, gridClass, totalCount }) =>
...
@@ -118,7 +118,7 @@ const ListingItems = ({ allActivitiesData, loading, gridClass, totalCount }) =>
itemsCountPerPage
=
{
12
}
itemsCountPerPage
=
{
12
}
totalItemsCount
=
{
totalCount
}
totalItemsCount
=
{
totalCount
}
onChange
=
{
async
(
e
)
=>
{
onChange
=
{
async
(
e
)
=>
{
console
.
log
(
e
);
console
.
log
(
"log >"
,
e
);
await
handlePagination
(
e
);
await
handlePagination
(
e
);
dispatch
(
getActivitiesByFilters
({
currentPage
:
e
}));
dispatch
(
getActivitiesByFilters
({
currentPage
:
e
}));
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment