Skip to content

Commit

Permalink
Fix CSP violation in Carousel drag-scroll helper (#1289)
Browse files Browse the repository at this point in the history
* Fix CSP violation is Carousel drag-scroll helper

* remove dependance on tailwind layers/global
  • Loading branch information
rnicholus committed Mar 12, 2024
1 parent d0dc810 commit 76d77a7
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 24 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@
},
"dependencies": {
"@floating-ui/react": "^0.26.2",
"classnames": "^2.5.1",
"contentlayer": "^0.3.4",
"debounce": "^2.0.0",
"flowbite": "^2.0.0",
"react-icons": "^4.11.0",
"react-indiana-drag-scroll": "^2.2.0",
"tailwind-merge": "^2.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { ComponentProps, FC, ReactElement, ReactNode } from 'react';
import { Children, cloneElement, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { HiOutlineChevronLeft, HiOutlineChevronRight } from 'react-icons/hi';
import ScrollContainer from 'react-indiana-drag-scroll';
import ScrollContainer from '../../helpers/drag-scroll';
import { twMerge } from 'tailwind-merge';
import { isClient } from '../../helpers/is-client';
import { mergeDeep } from '../../helpers/merge-deep';
Expand Down

0 comments on commit 76d77a7

Please sign in to comment.