Skip to content

Commit

Permalink
Typo QuickFix
Browse files Browse the repository at this point in the history
  • Loading branch information
nebojsajsimic committed Jan 29, 2025
1 parent 730c902 commit 32f65cc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
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

0 comments on commit 32f65cc

Please sign in to comment.