Skip to content

Commit

Permalink
prefer clsx/lite for unocss classes because its smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Feb 12, 2024
1 parent 18be754 commit ef62f16
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/Disconnected.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {useEffect, useState} from 'react';

export default function Disconnected({
Expand Down
2 changes: 1 addition & 1 deletion src/components/NoteEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {useState} from 'react';
import Markdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';

export default function ProgressBar({
slideIndex,
Expand Down
2 changes: 1 addition & 1 deletion src/components/SaveIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {useContext, useEffect} from 'react';
import {UpdateContext} from './UpdateProvider';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Toggle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';

export default function Toggle({
checked,
Expand Down
2 changes: 1 addition & 1 deletion src/components/reactions/ReactionControls.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import Button from '../toolbar/Button';
import {type IconReaction} from './reaction';
import reactionsIconMap from './reaction-icons-map';
Expand Down
2 changes: 1 addition & 1 deletion src/components/reactions/Reactions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {useEffect, useMemo, useRef} from 'react';
import {type IconReaction, type IconReactionMap} from './reaction';
import reactionsIconMap from './reaction-icons-map';
Expand Down
2 changes: 1 addition & 1 deletion src/components/slides/Slideshow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import Loading from '../Loading';

export default function Slideshow({
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {type MouseEventHandler} from 'react';

export default function Button({
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar/LinkButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {type MouseEventHandler} from 'react';
import {Link} from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar/RoundButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {type MouseEventHandler} from 'react';

export default function RoundButton({
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {useEffect, useState} from 'react';
import {type PresentationAndId} from '../../../functions/src/presentation';
import {auth} from '../../firebase';
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useContext,
} from 'react';
import {Link, NavLink} from 'react-router-dom';
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {auth} from '../firebase';
import {UserContext} from '../components/UserProvider';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/PresentationPreferences.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useEffect, useState} from 'react';
import {deleteDoc, doc, updateDoc} from 'firebase/firestore';
import {ref, deleteObject, listAll, getStorage} from 'firebase/storage';
import clsx from 'clsx';
import clsx from 'clsx/lite';
import usePresentation from '../components/slides/use-presentation';
import {
type PresentationUpdate,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
signInWithEmailLink,
} from 'firebase/auth';
import {Link, useLocation, useNavigate} from 'react-router-dom';
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {auth} from '../firebase';
import Loading from '../components/Loading';
import Button from '../components/toolbar/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Speaker.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import {useMemo, useState, useCallback, useEffect} from 'react';
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {useSwipeable} from 'react-swipeable';
import {useSlideIndex} from '../components/slides/use-slide-index';
import useKeys from '../use-keys';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {useDropzone} from 'react-dropzone';
import * as pdfjs from 'pdfjs-dist';
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';
import clsx from 'clsx';
import clsx from 'clsx/lite';
import {
type DocumentReference,
addDoc,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Viewer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useEffect, useMemo} from 'react';
import clsx from 'clsx';
import clsx from 'clsx/lite';
import DefaultLayout from '../layouts/DefaultLayout';
import usePresentation from '../components/slides/use-presentation';
import Slideshow from '../components/slides/Slideshow';
Expand Down

0 comments on commit ef62f16

Please sign in to comment.