Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
malmz committed May 17, 2024
1 parent 69eeeb2 commit f2ab297
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 19 deletions.
3 changes: 2 additions & 1 deletion app/components/ui/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import * as React from 'react';
import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';

import { cn } from '~/lib/utils';
import { ButtonProps, buttonVariants } from '~/components/ui/button';
import type { ButtonProps} from '~/components/ui/button';
import { buttonVariants } from '~/components/ui/button';
import { Link } from '@remix-run/react';

const Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (
Expand Down
2 changes: 1 addition & 1 deletion app/lib/actions.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { and, asc, eq, isNull, sql, type InferInsertModel } from 'drizzle-orm';
import { and, asc, eq, isNull } from 'drizzle-orm';
import { db } from './db.server';
import { album, image, type CreateAlbum } from './schema.server';
import { deleteImageFiles } from './storage/image';
Expand Down
6 changes: 1 addition & 5 deletions app/lib/session.server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
createCookie,
createCookieSessionStorage,
createFileSessionStorage,
} from '@remix-run/node';
import { createCookie, createFileSessionStorage } from '@remix-run/node';
import { join } from 'path';
import { storagePath } from './storage/paths';

Expand Down
1 change: 0 additions & 1 deletion app/routes/_main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
useLoaderData,
} from '@remix-run/react';
import { CircleUser, Mail } from 'lucide-react';
import { Input } from '~/components/ui/input';
import dataLogo from '~/assets/images/datalogo.svg';
import { getYear } from 'date-fns';
import {
Expand Down
11 changes: 0 additions & 11 deletions app/routes/api.image.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,9 @@ import { getPreviewStream } from '~/lib/storage/preview';
import { getImageStream } from '~/lib/storage/image';
import type { ImageStream } from '~/lib/storage/types';
import { extension } from 'mime-types';
import { z } from 'zod';
import { getParams, getParamsOrFail } from 'remix-params-helper';

const ensure = true;

const pathSchema = z.object({
id: z.number(),
});

const querySchema = z.object({
thumbnail: z.string().optional(),
preview: z.string().optional(),
});

export const loader = async ({ params, request }: LoaderFunctionArgs) => {
const { passed } = await checkRole(['read:album'])(request);

Expand Down

0 comments on commit f2ab297

Please sign in to comment.