Skip to content

Commit

Permalink
fix: revert previous published item layout (#1058)
Browse files Browse the repository at this point in the history
* fix: revert previous published item layout

* refactor: fix publish button
  • Loading branch information
pyphilia authored Mar 6, 2024
1 parent 466ede4 commit c635e5b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/components/common/PublishButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ const PublishButton = ({ itemId }: Props): JSX.Element => {
to={buildItemPublishPath(itemId)}
component={Link}
>
<LibraryIcon size={24} showSetting primaryColor="#777" />
<LibraryIcon
size={24}
showSetting
primaryColor="#777"
secondaryColor="#fff"
disableHover
selected
/>
</IconButton>
</Tooltip>
);
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,14 @@ const MainMenu = (): JSX.Element => {
<MenuItem
onClick={() => goTo(PUBLISHED_ITEMS_PATH)}
selected={pathname === PUBLISHED_ITEMS_PATH}
text="Published items"
text={translateBuilder(BUILDER.NAVIGATION_PUBLISHED_ITEMS_TITLE)}
icon={
<LibraryIcon
primaryColor={iconColor}
secondaryColor="#fff"
size={24}
disableHover
selected
/>
}
/>
Expand Down
1 change: 1 addition & 0 deletions src/langs/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export const BUILDER = {
ITEM_SELECTION_NAVIGATION_PARENT: 'ITEM_SELECTION_NAVIGATION_PARENT',
MY_ITEMS_TITLE: 'MY_ITEMS_TITLE',
NAVIGATION_FAVORITE_ITEMS_TITLE: 'NAVIGATION_FAVORITE_ITEMS_TITLE',
NAVIGATION_PUBLISHED_ITEMS_TITLE: 'NAVIGATION_PUBLISHED_ITEMS_TITLE',
NAVIGATION_MY_ITEMS_TITLE: 'NAVIGATION_MY_ITEMS_TITLE',
NAVIGATION_SHARED_ITEMS_TITLE: 'NAVIGATION_SHARED_ITEMS_TITLE',
NEW_ITEM_APP_TAB_TEXT: 'NEW_ITEM_APP_TAB_TEXT',
Expand Down
1 change: 1 addition & 0 deletions src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
"MOVE_ITEM_MODAL_TITLE_other": "Where do you want to move {{name}} and {{count}} others?",
"MY_ITEMS_TITLE": "My Graasp",
"NAVIGATION_FAVORITE_ITEMS_TITLE": "Favorite Items",
"NAVIGATION_PUBLISHED_ITEMS_TITLE": "Published Items",
"NAVIGATION_MY_ITEMS_TITLE": "My Graasp",
"NAVIGATION_SHARED_ITEMS_TITLE": "Shared Items",
"NEW_ITEM_APP_TAB_TEXT": "Application",
Expand Down
1 change: 1 addition & 0 deletions src/langs/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
"MOVE_ITEM_MODAL_TITLE_other": "Où déplacer {{name}} et {{count}} autres éléments ?",
"MY_ITEMS_TITLE": "Mon Graasp",
"NAVIGATION_FAVORITE_ITEMS_TITLE": "Éléments Favoris",
"NAVIGATION_PUBLISHED_ITEMS_TITLE": "Éléments Publiés",
"NAVIGATION_MY_ITEMS_TITLE": "Mon Graasp",
"NAVIGATION_SHARED_ITEMS_TITLE": "Éléments Partagés",
"NEW_ITEM_APP_TAB_TEXT": "Application",
Expand Down

0 comments on commit c635e5b

Please sign in to comment.