-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #638 from IntersectMBO/develop
Enhancements: Deployment Workflow, Search Functionality Fixes and Action Improvements
- Loading branch information
Showing
11 changed files
with
101 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
govtool/frontend/src/components/molecules/EmptyStateGovernanceActionsCategory.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Typography } from "@atoms"; | ||
import { useTranslation } from "@hooks"; | ||
import { getProposalTypeLabel } from "@utils"; | ||
|
||
import { EmptyStateGovernanceActionsCategoryProps } from "./types"; | ||
|
||
export const EmptyStateGovernanceActionsCategory = ({ | ||
category, | ||
isSearch, | ||
}: EmptyStateGovernanceActionsCategoryProps) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Typography | ||
sx={{ | ||
fontWeight: 300, | ||
py: 4, | ||
}} | ||
> | ||
{isSearch ? ( | ||
t("govActions.noResultsForTheSearch") | ||
) : ( | ||
<> | ||
{t("govActions.withCategoryNotExist.partOne")} | ||
| ||
<Typography | ||
sx={{ | ||
display: "inline", | ||
fontWeight: 700, | ||
}} | ||
> | ||
{getProposalTypeLabel(category ?? "")} | ||
</Typography> | ||
| ||
{t("govActions.withCategoryNotExist.partTwo")} | ||
</> | ||
)} | ||
</Typography> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters