Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hackathon-login
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
YAHYAOUI Firas
Hackathon-login
Commits
5f2a2d9b
Commit
5f2a2d9b
authored
1 year ago
by
YAHYAOUI Firas
Browse files
Options
Downloads
Patches
Plain Diff
edit: correct url to fetch filters
parent
631c2d22
No related branches found
No related tags found
1 merge request
!23
edit: correct url to fetch filters
Pipeline
#20328
passed
1 year ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
src/api/eventsAPI.ts
+4
-4
4 additions, 4 deletions
src/api/eventsAPI.ts
src/pages/EventsPage.tsx
+0
-2
0 additions, 2 deletions
src/pages/EventsPage.tsx
with
6 additions
and
8 deletions
.gitlab-ci.yml
+
2
−
2
View file @
5f2a2d9b
...
...
@@ -21,14 +21,14 @@ test-job:
build-client
:
stage
:
build
image
:
public.ecr.aws/docker/library/
node:lts
image
:
node:lts
-alpine
script
:
-
npm install
-
npm run build
test-client-job
:
stage
:
test
image
:
public.ecr.aws/docker/library/
node:lts
image
:
node:lts
-alpine
script
:
-
npm install
-
npm run test
This diff is collapsed.
Click to expand it.
src/api/eventsAPI.ts
+
4
−
4
View file @
5f2a2d9b
...
...
@@ -29,21 +29,21 @@ export const getEventById = async (eventId: string) => {
}
export
const
getThemes
=
async
()
=>
{
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_theme
'
);
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_theme
/
'
);
return
result
.
data
;
}
export
const
getCities
=
async
()
=>
{
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_city
'
);
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_city
/
'
);
return
result
.
data
;
}
export
const
getOrganizers
=
async
()
=>
{
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_organizer
'
);
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_organizer
/
'
);
return
result
.
data
;
}
export
const
getHoods
=
async
()
=>
{
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_hood
'
);
const
result
=
await
API
.
get
<
string
[]
>
(
'
/get_hood
/
'
);
return
result
.
data
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/EventsPage.tsx
+
0
−
2
View file @
5f2a2d9b
...
...
@@ -30,8 +30,6 @@ export default function EventsPage() {
return
{
label
:
filter
.
label
,
options
:
[]
};
});
console
.
log
(
initialFilters
);
const
[
selectedFilters
,
setSelectedFilters
]
=
useState
<
Filter
[]
>
(
initialFilters
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment