+ Actions Library
+
+ Add new functionality and power up your workflow with these templates.
+
+
+
+ )
+ }}
+ />
+
+ Sort:{" "}
+ {sortList.find((item) => item.value === selectedSort).label}{" "}
+
+ >
+ ),
+ variant: "info outline ",
+ size: "md"
+ }}
+ />
+ ),
+ content: (
+ {},
+ applyView: (sort) => {
+ setSelectedSort(sort);
+ },
+ selectedView: selectedSort
+ }}
+ />
+ )
+ }}
+ />
+
+ {res === null || !Array.isArray(res.body.data) ? (
+
+ ) : (
+
+
+
+ {
+ setCurrentPage(page);
+ },
+ revaluateOnRender: true
+ }}
+ />
+
+
+ )}
+
+);
diff --git a/apps/astraplusplus/widget/home.jsx b/apps/astraplusplus/widget/home.jsx
index c51e6e7..9411b64 100644
--- a/apps/astraplusplus/widget/home.jsx
+++ b/apps/astraplusplus/widget/home.jsx
@@ -1,292 +1,300 @@
const CoADaoId = props.dev
- ? "/*__@replace:CoADaoIdTesting__*/"
- : "/*__@replace:CoADaoId__*/";
+ ? "/*__@replace:CoADaoIdTesting__*/"
+ : "/*__@replace:CoADaoId__*/";
const VotingBodyDaoId = props.dev
- ? "/*__@replace:VotingBodyDaoIdTesting__*/"
- : "/*__@replace:VotingBodyDaoId__*/";
+ ? "/*__@replace:VotingBodyDaoIdTesting__*/"
+ : "/*__@replace:VotingBodyDaoId__*/";
const TCDaoId = props.dev
- ? "/*__@replace:TCDaoIdTesting__*/"
- : "/*__@replace:TCDaoId__*/";
+ ? "/*__@replace:TCDaoIdTesting__*/"
+ : "/*__@replace:TCDaoId__*/";
const HoMDaoId = props.dev
- ? "/*__@replace:HoMDaoIdTesting__*/"
- : "/*__@replace:HoMDaoId__*/";
+ ? "/*__@replace:HoMDaoIdTesting__*/"
+ : "/*__@replace:HoMDaoId__*/";
let { page, tab, daoId, house } = props;
if (!page) {
- page = "home";
+ page = "home";
}
const currentLink = "#//*__@appAccount__*//widget/home";
State.init({
- activePage: page,
- activeTab: tab,
- activeDaoId: daoId
+ activePage: page,
+ activeTab: tab,
+ activeDaoId: daoId
});
if (
- page !== state.activePage ||
- tab !== state.activeTab ||
- daoId !== state.activeDaoId
+ page !== state.activePage ||
+ tab !== state.activeTab ||
+ daoId !== state.activeDaoId
) {
- State.update({
- activePage: page,
- activeTab: tab,
- activeDaoId: daoId
- });
+ State.update({
+ activePage: page,
+ activeTab: tab,
+ activeDaoId: daoId
+ });
}
page = state.activePage;
const router = {
- params: { page, tab, daoId, house },
- navigate: (newParams) => {
- router.params = {
- ...newParams
- };
- State.update({
- activePage: router.params.page,
- activeTab: router.params.tab,
- activeDaoId: router.params.daoId
- });
- }
+ params: { page, tab, daoId, house },
+ navigate: (newParams) => {
+ router.params = {
+ ...newParams
+ };
+ State.update({
+ activePage: router.params.page,
+ activeTab: router.params.tab,
+ activeDaoId: router.params.daoId
+ });
+ }
};
const pages = [
- [
- {
- title: "Home",
- icon: