Compare commits
4 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | b079759a6b | |
Derrick Hammer | 4a229059c2 | |
Derrick Hammer | d77c4c2a60 | |
Derrick Hammer | cccdfdedbb |
|
@ -1,3 +1,11 @@
|
|||
# [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)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/sdk",
|
||||
"version": "0.1.0-develop.28",
|
||||
"version": "0.1.0-develop.29",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/sdk",
|
||||
"version": "0.1.0-develop.28",
|
||||
"version": "0.1.0-develop.29",
|
||||
"dependencies": {
|
||||
"@lumeweb/kernel-network-registry-client": "0.1.0-develop.10",
|
||||
"@lumeweb/libkernel": "0.1.0-develop.65",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/sdk",
|
||||
"version": "0.1.0-develop.28",
|
||||
"version": "0.1.0-develop.29",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/src/index.d.ts",
|
||||
|
|
|
@ -29,15 +29,24 @@ const LumeDashboard = (props: any) => {
|
|||
setUniqueNetworkTypes(uniqueTypes);
|
||||
}, [networks]);
|
||||
|
||||
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 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 GivenTrigger = React.Children.toArray(
|
||||
children?.children || (children as any) || [],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue