Skip to content

Commit

Permalink
Small changes and updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jersyfi committed Feb 25, 2023
1 parent 1318289 commit 89802c2
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 388 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

All notable changes to `react-cookify` will be documented in this file.

## v2.1.5 - Ongoing...
## v2.1.7 - 2023-02-25

* Deleted preview text in Readme
* Changed the type of TableTypesType desc by adding JSX.Element to it
* Changed the HTML Element from p to div to match the above change

## v2.1.4 - 2023-02-14

Expand Down
670 changes: 288 additions & 382 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-cookify",
"version": "2.1.5",
"version": "2.1.7",
"description": "Simple, customizable open source cookie consent banner for GDPR law",
"scripts": {
"lint": "eslint src/**/*.{js,jsx,ts,tsx,json}",
Expand Down
2 changes: 1 addition & 1 deletion src/components/consent/detail/body/collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const Collapsible: React.FC<ConsentDetailBodyCollapsibleProps> = ({
>
<div className="bg-[var(--c-c-extend-bg-color)] rounded-b-[var(--c-c-extend-border-radius)] border-x-2 border-b-2 border-[var(--c-c-extend-border-color)] overflow-hidden text-[var(--c-c-extend-text-color)]">
<div className="p-3">
<p>{type.desc}</p>
<div>{type.desc}</div>
</div>

{_this.body?.length > 0 && (
Expand Down
5 changes: 4 additions & 1 deletion src/components/consent/detail/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export const Detail: React.FC<ConsentDetailProps> = ({
}) => {
return (
<Wrapper
className={'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]' + (show ? '' : ' hidden')}
className={
'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]' +
(show ? '' : ' hidden')
}
>
<Header title={content.title} support={support} />

Expand Down
3 changes: 2 additions & 1 deletion src/components/consent/info/info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const Info: React.FC<ConsentInfoProps> = ({
return (
<Wrapper
className={
(force && 'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]') + (show ? '' : ' hidden')
(force && 'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]') +
(show ? '' : ' hidden')
}
>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ type TableType = {
export type TableTypesType = {
for: string
title: string
desc: string
desc: string | JSX.Element
body?: TableRowType[]
}

Expand Down

0 comments on commit 89802c2

Please sign in to comment.