Skip to content

Commit

Permalink
fix: apply small fixes (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Dec 17, 2024
1 parent 7f53b34 commit d9aa2b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
8 changes: 1 addition & 7 deletions src/components/item/edit/EditModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentType as CT, useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { toast } from 'react-toastify';

import { Dialog, DialogTitle } from '@mui/material';
Expand All @@ -16,12 +16,6 @@ import FileForm from '../form/file/FileForm';
import { FolderEditForm } from '../form/folder/FolderEditForm';
import EditShortcutForm from '../shortcut/EditShortcutForm';

export interface EditModalContentPropType {
item?: DiscriminatedItem;
setChanges: (payload: Partial<DiscriminatedItem>) => void;
}
export type EditModalContentType = CT<EditModalContentPropType>;

type Props = {
item: DiscriminatedItem;
onClose: () => void;
Expand Down
12 changes: 0 additions & 12 deletions src/config/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
ShortLink,
} from '@graasp/sdk';

export const SHARED_ITEMS_ROOT_CONTAINER = 'sharedItemsPageRootContainer';
export const RECYCLED_ITEMS_ROOT_CONTAINER = 'recycledItemsPageRootContainer';
export const HEADER_APP_BAR_ID = 'headerAppBar';
export const ITEM_DELETE_BUTTON_CLASS = 'itemDeleteButton';
Expand Down Expand Up @@ -66,17 +65,13 @@ export const CREATE_ITEM_FILE_ID = 'createItemFile';
export const ITEM_FORM_LINK_INPUT_ID = 'itemFormLinkInput';
export const DASHBOARD_UPLOADER_ID = 'dashboardUploader';
export const CREATE_ITEM_CLOSE_BUTTON_ID = 'createItemCloseButton';
export const USER_MENU_SIGN_OUT_OPTION_ID = 'userMenuSignOutOption';
export const ITEM_LOGIN_SCREEN_ID = 'itemLoginScreen';
export const ITEM_LOGIN_SIGN_IN_USERNAME_ID = 'itemLoginSignInUsername';
export const ITEM_LOGIN_SIGN_IN_PASSWORD_ID = 'itemLoginSignInPassword';
export const ITEM_LOGIN_SIGN_IN_BUTTON_ID = 'itemLoginSignInButton';
export const ITEM_SCREEN_MAIN_ID = 'itemScreenMain';
export const ITEM_LOGIN_SCREEN_FORBIDDEN_ID = 'itemLoginScreenForbidden';
export const ITEM_LOGIN_SIGN_IN_MODE_ID = 'itemLoginSignInMode';
export const ITEM_MAIN_CLASS = 'itemMain';
export const HOME_ERROR_ALERT_ID = 'homeErrorAlert';
export const SHARED_ITEMS_ERROR_ALERT_ID = 'sharedItemsErrorAlert';
export const BOOKMARKED_ITEMS_ERROR_ALERT_ID = 'bookmarkedItemsErrorAlert';
export const PUBLISHED_ITEMS_ERROR_ALERT_ID = 'publishedItemsErrorAlert';
export const RECYCLED_ITEMS_ERROR_ALERT_ID = 'recycledItemsErrorAlert';
Expand Down Expand Up @@ -141,11 +136,6 @@ export const buildPlayerButtonId = (id: string): string => `playerButton-${id}`;
export const buildEditButtonId = (id: string): string => `editButton-${id}`;
export const buildSettingsButtonId = (id: string): string =>
`settingsButton-${id}`;
export const PUBLIC_SETTING_SWITCH_ID = 'publicSettingSwitch';
export const INVITE_ITEM_EMAIL_INPUT_ID = 'inviteItemEmailInput';
export const INVITE_ITEM_BUTTON_ID = 'inviteItemButton';
export const SHARE_ITEM_DIALOG_ID = 'shareItemDialog';
export const SHARE_ITEM_DIALOG_LINK_SELECT_ID = 'shareItemDialogLinkSelect';
export const SHARE_ITEM_QR_BTN_ID = 'shareItemQRBtn';
export const SHARE_ITEM_QR_DIALOG_ID = 'shareItemQRDialog';
export const ACCESS_INDICATION_ID = 'accessIndication';
Expand Down Expand Up @@ -180,8 +170,6 @@ export const ITEMS_TABLE_RESTORE_SELECTED_ITEMS_ID =
export const FOLDER_FORM_DESCRIPTION_ID = 'folderFormDescription';
export const buildNameCellRendererId = (id: string): string =>
`nameCellRenderer-${id}`;
export const ITEM_CARD_MEDIA_CLASSNAME = 'itemCardMedia';
export const ITEM_CARD_HEADER_CLASSNAME = 'itemCardHeader';
export const THUMBNAIL_SETTING_UPLOAD_BUTTON_ID =
'thumbnailSettingUploadButton';
export const CLEAR_CHAT_SETTING_ID = 'clearChatSettingButton';
Expand Down
2 changes: 1 addition & 1 deletion src/langs/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"LINK_DEFAULT_NAME": "Mi enlace",
"MOVE_BUTTON": "Mover",
"MOVE_BUTTON_zero": "Mover",
"MOVE_BUTTON_one": "Mover a {{nombre}}",
"MOVE_BUTTON_one": "Mover a {{name}}",
"MOVE_ITEM_MODAL_TITLE": "¿A dónde quieres mover este artículo?",
"MOVE_ITEM_MODAL_TITLE_zero": "¿A dónde quieres mudar a {{name}}?",
"MOVE_ITEM_MODAL_TITLE_one": "¿A dónde quieres mudar a {{name}} y a otro más?",
Expand Down

0 comments on commit d9aa2b2

Please sign in to comment.