Skip to content

Commit

Permalink
Added lock icon for published states
Browse files Browse the repository at this point in the history
  • Loading branch information
coolwr committed Feb 5, 2020
1 parent 80c9e20 commit 521f4ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
16 changes: 4 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sierralabs/xstate-viz",
"version": "0.2.3",
"version": "0.2.5",
"description": "Visualizer for XState.",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -35,6 +35,6 @@
"react-dom": "^16.6.0",
"resize-observer-polyfill": "^1.5.1",
"styled-components": "^4.0.2",
"xstate": "^4.6.3"
"xstate": "4.6.7"
}
}
2 changes: 1 addition & 1 deletion src/StateChartNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export class StateChartNode extends React.Component<StateChartNodeProps> {
'--depth': stateNode.path.length
}}
>
<strong>{stateNode.key}</strong>
<strong>{stateNode.meta.isPublished && '🔒'}{stateNode.key}</strong>
{stateNode.path.length === 0 ? (
<StyledButton
data-variant="reset"
Expand Down

0 comments on commit 521f4ab

Please sign in to comment.