Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FileUploadDialog overflow | Use ShadCN component #10047

Merged
merged 13 commits into from
Jan 23, 2025
Prev Previous commit
Next Next commit
Fix Lint
rajku-dev committed Jan 19, 2025
commit cb68635101280ebd49ac1e46d5b5406b1ee5c471
2 changes: 1 addition & 1 deletion src/components/Files/FilesTab.tsx
Original file line number Diff line number Diff line change
@@ -618,7 +618,7 @@ const FileUploadDialog = ({
index === 0 && fileUpload.error
? "border-red-500 focus:ring-red-500"
: "border-gray-300 focus:ring-primary"
}
}
value={fileUpload.fileNames[index] || ""}
disabled={fileUpload.uploading}
onChange={(e) =>

Unchanged files with check annotations Beta

if (queryCB) {
queryCB(query);
}
}, [query]);

Check warning on line 80 in src/CAREUI/misc/PaginatedList.tsx

GitHub Actions / cypress-run (1)

React Hook useEffect has a missing dependency: 'queryCB'. Either include it or remove the dependency array. If 'queryCB' changes too often, find the parent component that defines it and wrap that definition in useCallback
return (
<context.Provider
component: React.ComponentType<MicroPluginProps>;
routes: Array<{
path: string;
component: React.ComponentType<any>;

Check warning on line 13 in src/PluginRegistry.ts

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
}>;
}
for (const config of configs) {
try {
// Provide React and ReactDOM to the plugin
(window as any).React = React;

Check warning on line 34 in src/PluginRegistry.ts

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
(window as any).ReactDOM = ReactDOM;

Check warning on line 35 in src/PluginRegistry.ts

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
await this.loadScript(config.url);
const pluginModule = (window as any)[config.name];

Check warning on line 38 in src/PluginRegistry.ts

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
if (!pluginModule) {
throw new Error(
`Plugin ${config.name} not found after loading script`,
type Draft = {
timestamp: number;
draft: {
[key: string]: any;

Check warning on line 22 in src/Utils/AutoSave.tsx

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
};
};
export function useAutoSaveReducer<T>(
reducer: any,

Check warning on line 27 in src/Utils/AutoSave.tsx

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
initialState: any,

Check warning on line 28 in src/Utils/AutoSave.tsx

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
): [FormState<T>, Dispatch<FormAction<T>>] {
const saveInterval = 1000;
const saveKey = useRef(`form_draft_${window.location.pathname}`);
return [state, dispatch];
}
export function useAutoSaveState(initialState: any) {

Check warning on line 81 in src/Utils/AutoSave.tsx

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
const [state, dispatch] = useAutoSaveReducer((state: any, action: any) => {

Check warning on line 82 in src/Utils/AutoSave.tsx

GitHub Actions / cypress-run (1)

Unexpected any. Specify a different type
if (action.type === "set_state") {
return action.state;
}