Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
const CLERK_PUBLISHABLE_KEY = 'pk_test_YnJpZWYtc2Vhc25haWwtMTIuY2xlcmsuYWNjb3VudHMuZGV2JA'; // local dev key

const insertChildrenIntoTree = (node: any, targetPath: string, newChildren: any[]): any => {
if (!node) return null;

Check failure on line 63 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type

Check failure on line 63 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type

Check failure on line 63 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type

if (node.path === targetPath) {
const mergedChildren = newChildren.map((newChild: any) => {
const existingChild = node.children?.find((c: any) => c.path === newChild.path);

Check failure on line 67 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
if (existingChild && existingChild.children && existingChild.children.length > 0) {

Check failure on line 68 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
return { ...newChild, children: existingChild.children };
}
return newChild;
Expand All @@ -77,7 +77,7 @@
return {
...node,
children: node.children.map((child: any) => insertChildrenIntoTree(child, targetPath, newChildren)),
};

Check failure on line 80 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
}

return node;
Expand Down Expand Up @@ -162,7 +162,7 @@
}, [selectedImage?.path]);

const prevAdjustmentsRef = useRef<any>(null);

Check failure on line 165 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
const [viewportSize, setViewportSize] = useState<ImageDimensions>(() => {
if (typeof window === 'undefined') {
return { width: 0, height: 0 };
Expand All @@ -179,7 +179,7 @@
const latestRenderedJobIdRef = useRef<number>(0);
const currentResRef = useRef<number>(1280);
const cachedEditStateRef = useRef<any | null>(null);

Check failure on line 182 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
const [libraryViewMode, setLibraryViewMode] = useState<LibraryViewMode>(defaultLibraryViewMode);
const [isResizing, setIsResizing] = useState(false);
const [thumbnailSize, setThumbnailSize] = useState(defaultThumbnailSize);
Expand All @@ -188,9 +188,9 @@
const { requestThumbnails, clearThumbnailQueue, markGenerated } = useThumbnails();

const transformWrapperRef = useRef<any>(null);
const preloadedDataRef = useRef<{

Check failure on line 191 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
trees?: Promise<any>;
images?: Promise<ImageFile[]>;

Check failure on line 193 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

Unexpected any. Specify a different type
rootPaths?: string[];
currentPath?: string;
}>({});
Expand Down Expand Up @@ -607,7 +607,7 @@
);
};

const shouldHideFolderTree = isAndroid;
const shouldHideFolderTree = isAndroid && isPortraitViewport;
const isWgpuActive = appSettings?.useWgpuRenderer !== false && selectedImage?.isReady && hasRenderedFirstFrame;
const useMacWindowShell = osPlatform === 'macos' && !appSettings?.decorations && !isWindowFullScreen && !isFullScreen;

Expand Down Expand Up @@ -779,7 +779,7 @@
<ClerkProvider publishableKey={CLERK_PUBLISHABLE_KEY} routerPush={(to) => {}} routerReplace={(to) => {}}>
<ContextMenuProvider>
<App />
<GlobalTooltip />

Check warning on line 782 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

'to' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 782 in src/App.tsx

View workflow job for this annotation

GitHub Actions / Frontend Lint & Format

'to' is defined but never used. Allowed unused args must match /^_/u
</ContextMenuProvider>
</ClerkProvider>
);
Expand Down
Loading