Overhaul (#83)
* WIP Layout Refactor * New Connection Dialog * WIP form overhaul * Fix remaining config pages
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { ClassValue, clsx } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
export const renderOptions = (enumValue: {
|
||||
[s: string]: string | number;
|
||||
}): JSX.Element[] => {
|
||||
const optionsEnumValues = enumValue
|
||||
? Object.entries(enumValue).filter((value) => typeof value[1] === "number")
|
||||
: [];
|
||||
|
||||
return optionsEnumValues.map(([name, value], index) => (
|
||||
<option key={index} value={value}>
|
||||
{name}
|
||||
</option>
|
||||
));
|
||||
};
|
||||
Reference in New Issue
Block a user