Skip to content

Commit eb8541f

Browse files
authored
Lowercase tab (#984)
1 parent a1e4dc3 commit eb8541f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pgml-dashboard/src/components/component.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ macro_rules! component {
3737
};
3838
}
3939

40-
4140
pub use component;
4241

4342
// Render any string.

pgml-dashboard/src/components/navigation/tabs/tabs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Tabs {
2828
.tabs
2929
.into_iter()
3030
.map(|tab| {
31-
if tab.name() == name.to_string() {
31+
if tab.name().to_lowercase() == name.to_string().to_lowercase() {
3232
tab.active()
3333
} else {
3434
tab.inactive()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy