Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gatsby Theme Onegeo
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
OneGeo Suite
Libs
Gatsby Theme Onegeo
Commits
fe37cdfb
Commit
fe37cdfb
authored
2 years ago
by
Toavina
Browse files
Options
Downloads
Patches
Plain Diff
update : changement de niveau
parent
fbbe571d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.js
+1
-1
1 addition, 1 deletion
index.js
src/components/Partners.tsx
+7
-3
7 additions, 3 deletions
src/components/Partners.tsx
with
8 additions
and
4 deletions
index.js
+
1
−
1
View file @
fe37cdfb
...
@@ -12,7 +12,7 @@ export { default as Search } from "./src/components/core/Search";
...
@@ -12,7 +12,7 @@ export { default as Search } from "./src/components/core/Search";
export
{
default
as
Badge
}
from
"
./src/components/core/Badge
"
;
export
{
default
as
Badge
}
from
"
./src/components/core/Badge
"
;
export
{
default
as
Toc
}
from
"
./src/components/core/Toc
"
;
export
{
default
as
Toc
}
from
"
./src/components/core/Toc
"
;
export
{
default
as
Map
}
from
"
./src/components/core/Map
"
;
export
{
default
as
Map
}
from
"
./src/components/core/Map
"
;
export
{
default
as
Partners
}
from
"
./src/components/
core/
Partners
"
;
export
{
default
as
Partners
}
from
"
./src/components/Partners
"
;
// Feature components
// Feature components
export
{
default
as
Hero
}
from
"
./src/components/Hero
"
;
export
{
default
as
Hero
}
from
"
./src/components/Hero
"
;
...
...
This diff is collapsed.
Click to expand it.
src/components/
core/
Partners.tsx
→
src/components/Partners.tsx
+
7
−
3
View file @
fe37cdfb
...
@@ -12,15 +12,19 @@ const Partners = (props: Props) => {
...
@@ -12,15 +12,19 @@ const Partners = (props: Props) => {
const
dataDirectus
=
useStaticQuery
(
graphql
`
const
dataDirectus
=
useStaticQuery
(
graphql
`
query myQuery {
query myQuery {
api
{
directus
{
categorie
s {
partner
s {
id
id
logo {
id
}
name
name
url
}
}
}
}
}
}
`
);
`
);
const
partners
=
dataDirectus
.
api
.
categorie
s
;
const
partners
=
dataDirectus
.
directus
.
partner
s
;
const
images
=
partners
.
filter
((
item
)
=>
item
.
id
);
const
images
=
partners
.
filter
((
item
)
=>
item
.
id
);
const
nbr_image
:
number
=
images
.
length
;
const
nbr_image
:
number
=
images
.
length
;
...
...
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