Compare commits

..

No commits in common. "v0.1.0-develop.29" and "v0.1.0-develop.28" have entirely different histories.

4 changed files with 12 additions and 29 deletions

View File

@ -1,11 +1,3 @@
# [0.1.0-develop.29](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.28...v0.1.0-develop.29) (2023-10-12)
### Bug Fixes
* debug ([d77c4c2](https://git.lumeweb.com/LumeWeb/sdk/commit/d77c4c2a605a3ff695c35bd1f22759f830908ddc))
* pass props to trigger and add disabled button styling ([cccdfde](https://git.lumeweb.com/LumeWeb/sdk/commit/cccdfdedbbb659106d294cb11c0638920db94783))
# [0.1.0-develop.28](https://git.lumeweb.com/LumeWeb/sdk/compare/v0.1.0-develop.27...v0.1.0-develop.28) (2023-10-12)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.29",
"version": "0.1.0-develop.28",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.29",
"version": "0.1.0-develop.28",
"dependencies": {
"@lumeweb/kernel-network-registry-client": "0.1.0-develop.10",
"@lumeweb/libkernel": "0.1.0-develop.65",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/sdk",
"version": "0.1.0-develop.29",
"version": "0.1.0-develop.28",
"type": "module",
"main": "lib/index.js",
"types": "lib/src/index.d.ts",

View File

@ -29,24 +29,15 @@ const LumeDashboard = (props: any) => {
setUniqueNetworkTypes(uniqueTypes);
}, [networks]);
const DefaultTrigger = (props: any) => {
console.log(props);
return (
<LumeDashboardTrigger asChild {...props}>
<button
className={cn(
"bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md",
{
"disabled:pointer-events-none disabled:opacity-50":
props.disabled,
},
)}
{...props}>
Open Dashboard
</button>
</LumeDashboardTrigger>
);
};
const DefaultTrigger = (props: any) => (
<LumeDashboardTrigger asChild>
<button
className="bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md"
{...props}>
Open Dashboard
</button>
</LumeDashboardTrigger>
);
const GivenTrigger = React.Children.toArray(
children?.children || (children as any) || [],
)