Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from dev to QA #82

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pdf-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
As a minor extension, we also keep a semantic version for the `UNRELEASED`
changes.

## [v0.5.10](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.10) 2025-01-29
### Fixed
- Some typo fixes.

## [v0.5.9](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/0.5.9) 2025-01-28
### Fixed
- Added "Read More" on proposal page if Character Count is bigger den 500 [Issue #2649](https://github.com/IntersectMBO/govtool/issues/2649)
Expand Down
2 changes: 1 addition & 1 deletion pdf-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pdf-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@intersect.mbo/pdf-ui",
"version": "0.5.9",
"version": "0.5.10",
"description": "Proposal discussion ui",
"main": "./src/index.js",
"exports": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const SingleGovernanceAction = ({ id }) => {
const handleShareClick = (event) => {
setShareAnchorEl(event.currentTarget);
};
// Read More / Read Less logic
// Read More / Show Less logic
const [showFullText, setShowFullText] = useState(false);
const [truncatedText, setTruncatedText] = useState('');
const [totalCharLength, setTotalCharLength] = useState(0);
Expand Down Expand Up @@ -1067,7 +1067,7 @@ const SingleGovernanceAction = ({ id }) => {
},
}}
>
{showFullText ? 'Read less' : 'Read more'}
{showFullText ? 'Show less' : 'Read more'}
</Button>)}
</Box>
{showFullText && (
Expand Down Expand Up @@ -1148,7 +1148,7 @@ const SingleGovernanceAction = ({ id }) => {
},
}}
>
{showFullText ? 'Read less' : 'Read more'}
{showFullText ? 'Show less' : 'Read more'}
</Button>
</>
)}
Expand Down
6 changes: 3 additions & 3 deletions pdf-ui/src/pages/ProposedGovernanceActions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,14 @@ const ProposedGovernanceActions = () => {
)}
endIcon={
sortType === 'desc' ? (
<IconArrowUp
<IconArrowDown
color={
theme.palette.primary.icons
.black
}
/>
) : (
<IconArrowDown
<IconArrowUp
color={
theme.palette.primary.icons
.red
Expand All @@ -505,7 +505,7 @@ const ProposedGovernanceActions = () => {
},
}}
>
Sort: {sortType === 'desc' ? 'Last modified (asc)' : 'Last modified (desc)'}
Sort: {sortType === 'desc' ? 'Last modified (desc)' : 'Last modified (asc)'}
</Button>
</Box>
</Grid>
Expand Down
Loading