-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ui #383
fix: ui #383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Juste un petit refacto que je vois :)
|
||
return _filtres?.map((filtre) => { | ||
let uniqueValue: string[] = [] | ||
switch (filtre.filtre) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Salut, penses-tu pouvoir ne faire qu'une seule fois cette fonction uniqueValue...
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je propose
const toto = {
"Secteur d'activités" : {T:'api::event.event', case:'secteur'},
"Catégories" : {T:'api::event.event', case:'secteur'},
...
}
uniqueValues = uniqueValue(
_data as APIResponseData<toto[filtre.filtre].T>[],
(item) => item.attributes[toto[filtre.filtre].case]
)
| APIResponseData<'api::news.news'>[] | ||
|
||
export const filterByAttribute = (filtres: Filtre, data: Data) => { | ||
const _filtres = filtres |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ne faut-il pas un deepcopy
ici ?
|
Description
Cette pull request ne fait que des mises à jour css, theme... concernant l'UI.
Tickets
Lien 1
Lien 2
Lien 3
Lien 4
Lien 5
Lien 6
Lien 7