Anthropogenic / Anthropogenic/earth.api
Create refactor GHG child page path into a component
未關閉
enhancement
good first issue
- 主要語言
- JavaScript
- 星號
- 41
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
描述
In the GHG Weekly, Monthly, and Yearly pages, refactor the following into a component.
```
const { asPath } = useRouter();
var afterWithout = asPath.substr(1, asPath.lastIndexOf("/"));
const DataRouteURL = afterWithout;
if (error) return
Failed to load
;
if (!data) return LOADING;
```
Pages that will need to be updated
- [ ] `/co2/weekly`
- [ ] `/co2/monthly`
- [ ] `/co2/yearly`
- [ ] `/ch4/monthly`
- [ ] `/sf6/monthly`
- [ ] `/sf6/yearly`
- [ ] `/n2o/monthly`
- [ ] `/n2o/yearly`
And update GHG index pages
- [ ] `/sf6/monthly`
- [ ] `/sf6/yearly`
- [ ] `/n2o/monthly`
- [ ] `/n2o/yearly`
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。