* 🗂️ Added tab icons and styles * 🪑 Styled download panel table * 🪑 Cleaned up the DC++ search results table * 🪑 Many changes to DC++ downloads table * 🏗️ Wired up search with RQ * 🏗️ Changes to ComicDetail section * 🔧 Fixing table styes * 🏗 Fixed the archive ops panel * 🔧 Tweaked Archive ops further * 🃏 Styling the action menu * 🧩 CV Match panel refactor WIP * 🏗️ Refactored the action menu * 🤼 Cleaning up CV match panel * 🏗️ Refactored the scored matches * 🤼 Revamped CV match panel UX * 🖌️ Styling tweaks to the side panel * 🖌️ Cleaned up the form * 🏗️ Refactored the search form * 🤐 Added a uncompress indicator * 🏗️ Fix for encoding # in URIs * 🔧 Fixed # symbol handling in URLs * 🔧 Started work on Edit Metadata panel * 🔎 Added a check for existing uncompressed archives * 🏗️ Settings styling tweaks * 🏗️ Fixed invalidation of archiveOps * 🏗️ Fixed an invalidation query on DC++ download panel * 🏗️ Fixed CV-sourced Volume info panel * 🏗️ Fixed volume group card stacks on Dashboard * 🔍 Fixing CV search page * 🏗️ Refactoring Volume groups and wanted panel * 🏗️ Cleaning up useless files * 🛝 Added keen-slider for pull list * 🏗️ Abstracted heading/subheading into Header * 🏗️ Continued refactoring of PullList, Volumes etc. * 📆 Wired up the datepicker to LoCG pull list
33 lines
784 B
TypeScript
33 lines
784 B
TypeScript
import React, { ReactElement } from "react";
|
|
import Select from "react-select";
|
|
|
|
export const Menu = (props): ReactElement => {
|
|
const {
|
|
filteredActionOptions,
|
|
customStyles,
|
|
handleActionSelection,
|
|
Placeholder,
|
|
} = props.configuration;
|
|
|
|
return (
|
|
<Select
|
|
components={{ Placeholder }}
|
|
placeholder={
|
|
<span className="inline-flex flex-row items-center gap-2 pt-1">
|
|
<div className="w-6 h-6">
|
|
<i className="icon-[solar--cursor-bold-duotone] w-6 h-6"></i>
|
|
</div>
|
|
<div>Select An Action</div>
|
|
</span>
|
|
}
|
|
styles={customStyles}
|
|
name="actions"
|
|
isSearchable={false}
|
|
options={filteredActionOptions}
|
|
onChange={handleActionSelection}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Menu;
|