Skip to content

Commit

Permalink
refactor: remove spaces from classname
Browse files Browse the repository at this point in the history
  • Loading branch information
sahsisunny committed Nov 12, 2023
1 parent f82c8b6 commit 47b2789
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/components/Dashboard/UrlListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { TINY_SITE } from '@/constants/url';
import { UrlType } from '@/types/url.types';
import formatDate from '@/utils/formatDate';

import CopyIcon from '../../../public/assets/icons/copy';
import InternetIcon from '../../../public/assets/icons/internet';
import Button from '../Button';
import CopyIcon from '../icons/copy';
import InternetIcon from '../icons/internet';

interface UrlListItemProps {
url: UrlType;
Expand All @@ -15,7 +15,7 @@ interface UrlListItemProps {

const UrlListItem = ({ url, copyButtonHandler }: UrlListItemProps) => {
return (
<li className="flex m-2 border-gray-50 rounded-lg border-2 bg-white px-4 py-2 w-full">
<li className="flex m-2 border-gray-50 rounded-lg border-2 bg-white px-4 py-2 w-full">
<div className="flex items-center justify-center ">
<InternetIcon width={50} height={50} />
</div>
Expand Down Expand Up @@ -45,7 +45,7 @@ const UrlListItem = ({ url, copyButtonHandler }: UrlListItemProps) => {
href={url.OriginalUrl}
target="_blank"
rel="noopener noreferrer"
className="xs:block max-w-[200px] truncate text-sm font-medium text-gray-700 underline-offset-2 hover:underline sm:max-w-[300px] md:max-w-[400px] xl:max-w-[440px]"
className="xs:block max-w-[200px] truncate text-sm font-medium text-gray-700 underline-offset-2 hover:underline sm:max-w-[300px] md:max-w-[400px] xl:max-w-[440px]"
>
{url.OriginalUrl}
</Link>
Expand Down
4 changes: 2 additions & 2 deletions src/components/InputBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { SetStateAction, useState } from 'react';

import Button from '@/components/Button';

import EyeIcon from '../../../public/assets/icons/eye';
import EyeCloseIcon from '../../../public/assets/icons/eyeClose';
import EyeIcon from '../icons/eye';
import EyeCloseIcon from '../icons/eyeClose';

type Props = {
type: string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Button from '@/components/Button';
import { TINY_API_GOOGLE_LOGIN, TINY_API_LOGOUT } from '@/constants/url';
import IsAuthenticated from '@/hooks/isAuthenticated';

import DownArrowIcon from '../../../public/assets/icons/downArrow';
import GoogleIcon from '../../../public/assets/icons/google';
import DownArrowIcon from '../icons/downArrow';
import GoogleIcon from '../icons/google';
import ProfileIcon from '../ProfileIcon/ProfileIcon';

const Navbar: React.FC = () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/[redirect]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEffect, useState } from 'react';
import { TINY_SITE } from '@/constants/url';
import fetchOriginalUrl from '@/utils/fetchOriginalUrl';

import RedirectIcon from '../../../public/assets/icons/redirect';
import RedirectIcon from '../../components/icons/redirect';

interface LoaderTimerProps {
timer: number;
Expand Down
5 changes: 2 additions & 3 deletions src/pages/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Link from 'next/link';
import React, { ChangeEvent, useState } from 'react';

import Button from '@/components/Button';
Expand All @@ -10,8 +9,8 @@ import IsAuthenticated from '@/hooks/isAuthenticated';
import { urlRegex } from '@/utils/constants';
import shortenUrl from '@/utils/shortenUrl';

import CopyIcon from '../../../public/assets/icons/copy';
import ShareIcon from '../../../public/assets/icons/share';
import CopyIcon from '../../components/icons/copy';
import ShareIcon from '../../components/icons/share';

interface InputSectionProps {
url: string;
Expand Down

0 comments on commit 47b2789

Please sign in to comment.