Skip to content

Commit

Permalink
update docks and example
Browse files Browse the repository at this point in the history
  • Loading branch information
Kivylius committed Feb 17, 2024
1 parent 89cc9c6 commit d33434f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

This is a starting repo to create plugins for the webdeck web app. Everything is setup in this template to get started. Fork this or clone it and begin.

## Getting started.
## Usage

To use try out this plugin, paste the url to this repo into you plugins and you ready to go!

## Contributing

### Install dependencies

To get started, install the dependenceis

Expand Down
32 changes: 19 additions & 13 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import React from 'react';

const App = ({ title }) => (
<div
style={{
borderRadius: '4px',
padding: '2em',
backgroundColor: 'red',
color: 'white',
}}
data-e2e="APP_2__WIDGET"
>
{title}
</div>
);
export const onPress = (...argss) => {
console.log("on press pressed", args);
}

const App = (props) => {
console.log("App props", props);
return (
<div
style={{
borderRadius: '4px',
padding: '2em',
backgroundColor: 'red',
color: 'white',
}}
>
<div>hello from webdeck-plugin-template</div>
</div>
)
};

export default App;

0 comments on commit d33434f

Please sign in to comment.