Skip to content

Commit

Permalink
fix: 🐛 fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB committed Nov 24, 2024
1 parent 7e209e7 commit 80d3fcf
Show file tree
Hide file tree
Showing 10 changed files with 393 additions and 531 deletions.
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18",
"@ultra-reporter/tailwind-config": "workspace:*",
"@ultra-reporter/typescript-config": "workspace:*",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.15"
Expand Down
115 changes: 0 additions & 115 deletions apps/web/styles/global.css

This file was deleted.

5 changes: 1 addition & 4 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"publishConfig": {
"access": "public"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"scripts": {
"ui": "pnpm dlx shadcn@latest"
},
Expand Down Expand Up @@ -62,12 +59,12 @@
"devDependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18",
"@ultra-reporter/tailwind-config": "workspace:*",
"@ultra-reporter/typescript-config": "workspace:*",
"@ultra-reporter/utils": "workspace:*",
"daisyui": "^4.12.14",
"postcss": "^8.4.49",
"postcss-load-config": "^6.0.1",
"autoprefixer": "^10.4.20",
"tailwindcss": "^3.4.15"
}
}
4 changes: 2 additions & 2 deletions packages/ui/src/components/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const AccordionTrigger = React.forwardRef<
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
'flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
'flex flex-1 items-center justify-between py-4 text-left font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
className
)}
{...props}
Expand All @@ -45,7 +45,7 @@ const AccordionContent = React.forwardRef<
>(({ className, children, ...props }, ref) => (
<AccordionPrimitive.Content
ref={ref}
className='data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm'
className='data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden'
{...props}
>
<div className={cn('pb-4 pt-0', className)}>{children}</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/home/faq.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Description } from '@/common/description';
import { Title } from '@/common/title';
import { Description } from '../common/description';
import { Title } from '../common/title';
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/components/accordion';
} from '../components/accordion';

const faqItems = [
{
Expand Down
16 changes: 12 additions & 4 deletions packages/ui/src/home/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ export const Footer = (): JSX.Element => {
return (
<footer className='footer footer-center bg-muted text-muted-foreground p-10 pb-10 font-bold'>
<aside>
<Image src='/favicon.png' height={24} width={24} alt='Ultra Reporter' />
<h3 className='text-foreground text-xl'>
Ultra Report <span className='text-sm'>- v{packageInfo.version}</span>
</h3>
<Link href='/' className='flex flex-col items-center'>
<Image
src='/favicon.png'
height={24}
width={24}
alt='Ultra Reporter'
/>
<h3 className='text-foreground text-xl'>
Ultra Report{' '}
<span className='text-sm'>- v{packageInfo.version}</span>
</h3>
</Link>
<div>
<div className='grid-flow-col items-center'>
<p>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/home/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FileUpload } from '@/utils/file-upload';
import Image from 'next/image';
import { FileUpload } from '../utils/file-upload';

export const Hero = (): JSX.Element => {
return (
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/home/how-it-works.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Description } from '@/common/description';
import { Title } from '@/common/title';
import { Card, CardContent } from '@/components/card';
import { Description } from '../common/description';
import { Title } from '../common/title';
import { Card, CardContent } from '../components/card';

const steps = [
{
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/home/scroll-to-top.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client';

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

export const ScrollToTop = (): JSX.Element => {
const [isVisible, setIsVisible] = useState(false);
Expand Down
Loading

0 comments on commit 80d3fcf

Please sign in to comment.