Skip to content

Commit

Permalink
fix: 🐛 fixed issue with build command
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB committed Dec 21, 2024
1 parent fc97788 commit c9ab5b8
Show file tree
Hide file tree
Showing 36 changed files with 48 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/(app)/loading/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@ultra-reporter/utils/xml-parser';
import { Bug, MoveLeft } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';
import { JSX, useEffect, useState } from 'react';

const LoadingPage = (): JSX.Element => {
const [progress, setProgress] = useState(0);
Expand Down
1 change: 1 addition & 0 deletions apps/web/app/(app)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { HowItWorks } from '@ultra-reporter/ui/home/how-it-works';
import { NavBar } from '@ultra-reporter/ui/home/nav-bar';
import { OpenSource } from '@ultra-reporter/ui/home/open-source';
import { Sponsor } from '@ultra-reporter/ui/home/sponsor';
import { JSX } from 'react';

const LandingPage = (): JSX.Element => {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/results/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { columns } from '@ultra-reporter/ui/data-table/table/columns';
import { NavBar } from '@ultra-reporter/ui/home/nav-bar';
import { cn } from '@ultra-reporter/utils/cn';
import { FormattedData } from '@ultra-reporter/utils/types';
import { useEffect, useState } from 'react';
import { JSX, useEffect, useState } from 'react';

const chartConfig: ChartConfig = {
total: {
Expand Down
9 changes: 6 additions & 3 deletions apps/web/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import { Button } from '@ultra-reporter/ui/components/button';
import { FileQuestion } from 'lucide-react';
import Link from 'next/link';
import { JSX } from 'react';

export default function NotFound() {
const NotFound = (): JSX.Element => {
return (
<div className='bg-background text-foreground flex min-h-screen flex-col items-center justify-center'>
<FileQuestion className='text-primary mb-8 h-24 w-24' />
<h1 className='mb-4 text-4xl font-bold'>404 - Page Not Found</h1>
<p className='mb-8 max-w-md text-center text-xl'>
Oops! It seems what you're looking for has gone missing in our data
Oops! It seems what you&apos;re looking for has gone missing in our data
center.
</p>
<Button asChild>
<Link href='/'>Return to Homepage</Link>
</Button>
</div>
);
}
};

export default NotFound;
1 change: 1 addition & 0 deletions packages/db/src/users.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { db } from './client';

interface User {
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-toggle/src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { createFlagsmithInstance } from 'flagsmith/isomorphic';
import { FlagsmithProvider, useFlags } from 'flagsmith/react';
import { IFlagsmithFeature, IFlagsmithTrait, IState } from 'flagsmith/types';
import { useRef } from 'react';
import { JSX, useRef } from 'react';
import { Flags } from './flag-list';

interface FeatureProviderProps {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/charts/area-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Area, AreaChart, CartesianGrid, XAxis } from 'recharts';

import { AreaChartData } from '@ultra-reporter/utils/types';
import { JSX } from 'react';
import {
Card,
CardContent,
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/charts/dough-nut-chart.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ChartData } from '@ultra-reporter/utils/types';
import { JSX } from 'react';
import { Label, Pie, PieChart } from 'recharts';
import {
Card,
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/charts/pie-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Pie, PieChart } from 'recharts';

import { ChartData } from '@ultra-reporter/utils/types';
import { JSX } from 'react';
import {
Card,
CardContent,
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/common/description.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

interface DescriptionProps {
text: string;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/common/title.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

interface TitleProps {
text: string;
}
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/data-table/cell-text-data.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Column } from '@tanstack/react-table';
import { ArrowUpDown } from 'lucide-react';
import { JSX } from 'react';
import { Button } from '../components/button';
import { TooltipWrapper } from '../utils/tooltip-wrapper';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/data-table/data-table-faceted-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function DataTableFacetedFilter<TData, TValue>({
column,
title,
options,
}: DataTableFacetedFilterProps<TData, TValue>): JSX.Element {
}: DataTableFacetedFilterProps<TData, TValue>): React.JSX.Element {
const facets = column?.getFacetedUniqueValues();
const selectedValues = new Set(column?.getFilterValue() as string[]);

Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/data-table/data-table-pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Table } from '@tanstack/react-table';
import { JSX } from 'react';
import { Button } from '../components/button';
import {
Select,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/data-table/data-table-toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Cross2Icon } from '@radix-ui/react-icons';
import { Table } from '@tanstack/react-table';
import { useState } from 'react';
import { JSX, useState } from 'react';
import { Button } from '../components/button';
import { Input } from '../components/input';
import { Switch } from '../components/switch';
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/data-table/data-table-view-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';
import { MixerHorizontalIcon } from '@radix-ui/react-icons';
import { Table } from '@tanstack/react-table';
import { JSX } from 'react';
import { Button } from '../components/button';
import {
DropdownMenu,
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/data-table/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
VisibilityState,
} from '@tanstack/react-table';

import { JSX } from 'react';
import {
Table,
TableBody,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/data-table/table/attachment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
prettifyJson,
} from '@ultra-reporter/utils/string-util';
import { Link } from 'lucide-react';
import { useEffect, useState } from 'react';
import { JSX, useEffect, useState } from 'react';
import { CopyBlock, dracula } from 'react-code-blocks';
import { Button } from '../../components/button';
import { Card, CardContent } from '../../components/card';
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/faq.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import { getFlag } from '@ultra-reporter/feature-toggle/provider';
import { JSX } from 'react';
import { Description } from '../common/description';
import { Title } from '../common/title';
import {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/feature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Table,
Timer,
} from 'lucide-react';
import { JSX } from 'react';

const features = [
{
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/feedback.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MessageSquareIcon } from 'lucide-react';
import Link from 'next/link';
import { JSX } from 'react';
import { Button } from '../components/button';

export const Feedback = (): JSX.Element => {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Image from 'next/image';
import Link from 'next/link';
import { JSX } from 'react';
import packageInfo from '../../package.json';
import { GitHub } from '../icons/github';
import { LinkedIn } from '../icons/linkedin';
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { getFlag } from '@ultra-reporter/feature-toggle/provider';
import Image from 'next/image';
import { JSX } from 'react';
import { FileUpload } from '../utils/file-upload';

export const Hero = (): JSX.Element => {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/how-it-works.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { JSX } from 'react';
import { Description } from '../common/description';
import { Title } from '../common/title';
import { Card, CardContent } from '../components/card';
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { Menu } from 'lucide-react';
import Image from 'next/image';
import Link from 'next/link';
import { JSX } from 'react';
import { Button } from '../components/button';
import { Sheet, SheetContent, SheetTrigger } from '../components/sheet';
import { ThemeToggle } from '../components/theme-toggle';
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/open-source.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { StarIcon } from 'lucide-react';
import Link from 'next/link';
import { JSX } from 'react';
import { RainbowButton } from '../components/rainbow-button';

export const OpenSource = (): JSX.Element => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/home/scroll-to-top.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { ArrowUp } from 'lucide-react';
import { useEffect, useState } from 'react';
import { JSX, useEffect, useState } from 'react';
import { Button } from '../components/button';
import { TooltipWrapper } from '../utils/tooltip-wrapper';

Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/home/sponsor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HeartIcon } from 'lucide-react';
import Link from 'next/link';
import { JSX } from 'react';
import { RainbowButton } from '../components/rainbow-button';

export const Sponsor = (): JSX.Element => {
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/icons/github.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

export const GitHub = (): JSX.Element => {
return (
<svg
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/icons/linkedin.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

export const LinkedIn = (): JSX.Element => {
return (
<svg
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/icons/sponsor.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

export const Sponsor = (): JSX.Element => {
return (
<svg
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/icons/x.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

export const X = (): JSX.Element => {
return (
<svg
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/icons/youtube.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { JSX } from 'react';

export const YouTube = (): JSX.Element => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/utils/file-upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Upload } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
import { JSX, useState } from 'react';
import { Button } from '../components/button';
import { Input } from '../components/input';
import { Label } from '../components/label';
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/utils/theme-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ThemeProvider as NextThemesProvider,
type ThemeProviderProps,
} from 'next-themes';
import { JSX } from 'react';

export const ThemeProvider = ({
children,
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/utils/tooltip-wrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { JSX } from 'react';
import {
Tooltip,
TooltipContent,
Expand Down

0 comments on commit c9ab5b8

Please sign in to comment.