Skip to content

Commit

Permalink
Merge branch 'development' into 3203-forest-area-as-proportion-of-tot…
Browse files Browse the repository at this point in the history
…al-land-area-sdg-should-be-estimated-bases-on-the-latest-available-ndp-after-2020
  • Loading branch information
sorja authored Mar 8, 2024
2 parents 1048cf3 + eb15829 commit 82afb59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/pages/CountryHome/Repository/Item/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Item: React.FC<Props> = (props) => {
const openPanel = useOpenPanel({ repositoryItem })

const isGlobalRepositoryItem = RepositoryItems.isGlobal({ repositoryItem })
const withActions = (isGlobalRepositoryItem && isGlobalRepositoryEditable) || isCountryRepositoryEditable
const withActions = isGlobalRepositoryItem ? isGlobalRepositoryEditable : isCountryRepositoryEditable
const level = repositoryItem.props.public ? 'public' : 'private'

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ExtentOfForest: React.FC = () => {
const { assessmentName, cycleName, countryIso } = useCountryRouteParams<CountryIso>()
const user = useUser()
const disabled = !editEnabled
const className = useButtonClassName({ disabled, iconName: 'small-add', size: ButtonSize.m })
const className = useButtonClassName({ disabled, iconName: 'small-add', label: 'L', size: ButtonSize.m })

if (!user) return null

Expand Down

0 comments on commit 82afb59

Please sign in to comment.