Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit f0fd9f3

Browse files
authored
Merge pull request #7 from supabase/fix/remove-dependencies
fix: remove dependency and force a release
2 parents 5f33ca4 + 656e809 commit f0fd9f3

File tree

4 files changed

+22
-29
lines changed

4 files changed

+22
-29
lines changed

package-lock.json

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"react-dom": "^16.13.1"
1818
},
1919
"dependencies": {
20-
"@headlessui/react": "^0.2.0",
2120
"prop-types": "^15.7.2",
2221
"react-feather": "^2.0.8",
2322
"react-transition-group": "^4.4.1"

src/components/Toggle/Toggle.js

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
import React, { useState } from 'react'
2-
import { Switch } from '@headlessui/react'
2+
// import { Switch } from '@headlessui/react'
33

44
export default function ({ label }) {
55
const [switchValue, setSwitchValue] = useState(false)
66

77
return (
8-
<Switch.Group as="div" className="flex items-center space-x-4">
9-
<Switch.Label>{label}</Switch.Label>
10-
<Switch
11-
as="button"
12-
checked={switchValue}
13-
onChange={setSwitchValue}
14-
className={`${
15-
switchValue ? 'bg-indigo-600' : 'bg-gray-200'
16-
} p-0 relative inline-flex flex-shrink-0 h-6 transition-colors duration-200 ease-in-out border-2 border-transparent rounded-full cursor-pointer w-11 focus:outline-none focus:ring`}
17-
>
18-
{({ checked }) => (
19-
<span
20-
className={`${
21-
checked ? 'translate-x-5' : 'translate-x-0'
22-
} inline-block w-5 h-5 transition duration-200 ease-in-out transform bg-white rounded-full`}
23-
/>
24-
)}
25-
</Switch>
26-
</Switch.Group>
8+
// <Switch.Group as="div" className="flex items-center space-x-4">
9+
// <Switch.Label>{label}</Switch.Label>
10+
// <Switch
11+
// as="button"
12+
// checked={switchValue}
13+
// onChange={setSwitchValue}
14+
// className={`${
15+
// switchValue ? 'bg-indigo-600' : 'bg-gray-200'
16+
// } p-0 relative inline-flex flex-shrink-0 h-6 transition-colors duration-200 ease-in-out border-2 border-transparent rounded-full cursor-pointer w-11 focus:outline-none focus:ring`}
17+
// >
18+
// {({ checked }) => (
19+
// <span
20+
// className={`${
21+
// checked ? 'translate-x-5' : 'translate-x-0'
22+
// } inline-block w-5 h-5 transition duration-200 ease-in-out transform bg-white rounded-full`}
23+
// />
24+
// )}
25+
// </Switch>
26+
// </Switch.Group>
27+
<span></span>
2728
)
2829
}

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,11 +1431,6 @@
14311431
dependencies:
14321432
"@hapi/hoek" "^8.3.0"
14331433

1434-
"@headlessui/react@^0.2.0":
1435-
"integrity" "sha512-YV+vF+QhTRcspydPdHF3ZXe+FkOiJpRdqMjjFIIX9bSdT2O2T7GurgKQdGgamNUM+B99MZBOTRqxS8Dlh485eg=="
1436-
"resolved" "https://registry.npmjs.org/@headlessui/react/-/react-0.2.0.tgz"
1437-
"version" "0.2.0"
1438-
14391434
"@icons/material@^0.2.4":
14401435
"integrity" "sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw=="
14411436
"resolved" "https://registry.npmjs.org/@icons/material/-/material-0.2.4.tgz"

0 commit comments

Comments
 (0)