Skip to content

Commit

Permalink
After CR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Nov 22, 2024
1 parent f25578f commit c8b6d52
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 32 deletions.
21 changes: 0 additions & 21 deletions src/bundle/Resources/public/js/scripts/admin.search.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/bundle/Resources/public/ts/admin.search.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (document: Document) {
(function () {
const searchForm = document.querySelector<HTMLFormElement>('.ibexa-search-form');
const searchInput = document.querySelector<HTMLInputElement>('.ibexa-search-form__search-input');
const headerSearchInput = document.querySelector<HTMLInputElement>('.ibexa-global-search__input');
Expand All @@ -25,4 +25,4 @@

headerSearchSubmitBtn?.addEventListener('click', handleHeaderSearchBtnClick, false);
languageSelector?.addEventListener('change', submitForm, false);
})(document);
})();
10 changes: 1 addition & 9 deletions src/bundle/ui-dev/src/modules/common/thumbnail/thumbnail.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import React from 'react';
import Icon from '../icon/icon';

interface ThumbnailProps {
thumbnailData: {
mimeType: string;
resource: string;
};
iconExtraClasses?: string;
contentTypeIconPath?: string;
}
import ThumbnailProps from './thumbnail.types';

const Thumbnail = ({ thumbnailData, iconExtraClasses, contentTypeIconPath }: ThumbnailProps) => {
const renderContentTypeIcon = (): JSX.Element | null => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { thumbnailData } from '../types/common';

export default interface ThumbnailProps extends thumbnailData {
iconExtraClasses?: string;
contentTypeIconPath?: string;
};
6 changes: 6 additions & 0 deletions src/bundle/ui-dev/src/modules/common/types/common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface thumbnailData {
thumbnailData: {
mimeType: string;
resource: string;
}
}

0 comments on commit c8b6d52

Please sign in to comment.