|
| 1 | +use leptos::{component, view, Fragment, IntoView}; |
1 | 2 | #[cfg(not(debug_assertions))] |
2 | | -use leptos::{create_local_resource, SignalGet}; |
3 | | -use leptos::{error::Result, island, serde_json::json, view, Fragment, IntoView}; |
| 3 | +use leptos::{create_local_resource, error::Result, serde_json::json, SignalGet}; |
4 | 4 | use serde::{Deserialize, Serialize}; |
5 | 5 |
|
6 | 6 | use crate::components::ContributorCard; |
@@ -85,7 +85,7 @@ async fn fetch_contributors() -> Result<Vec<Contributor>> { |
85 | 85 | Ok(res) |
86 | 86 | } |
87 | 87 |
|
88 | | -#[cfg_attr(not(debug_assertions), island)] |
| 88 | +#[cfg_attr(not(debug_assertions), component)] |
89 | 89 | #[cfg(not(debug_assertions))] |
90 | 90 | pub fn Contributors() -> impl IntoView { |
91 | 91 | let contributors_results = create_local_resource(move || (), |()| fetch_contributors()); |
@@ -127,7 +127,7 @@ pub fn Contributors() -> impl IntoView { |
127 | 127 | } |
128 | 128 | } |
129 | 129 |
|
130 | | -#[cfg_attr(debug_assertions, island)] |
| 130 | +#[cfg_attr(debug_assertions, component)] |
131 | 131 | #[cfg(debug_assertions)] |
132 | 132 | pub fn Contributors() -> impl IntoView { |
133 | 133 | let contributors = [Contributor { |
|
0 commit comments