-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f324494
commit e6fa4f0
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
client/src/app/panel/tabs/variable-outline/VariableOutlineStatusBarItem.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
* under one or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information regarding copyright | ||
* ownership. | ||
* | ||
* Camunda licenses this file to you under the MIT; you may not use this file | ||
* except in compliance with the MIT License. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import classnames from 'classnames'; | ||
|
||
import { Fill } from '../../../slot-fill'; | ||
|
||
export default function VariableOutlineStatusBarItem(props) { | ||
const { | ||
onToggle, | ||
layout | ||
} = props; | ||
|
||
const { panel = {} } = layout; | ||
|
||
return <Fill slot="status-bar__file" group="9_variables"> | ||
<button | ||
className={ classnames( | ||
'btn', | ||
{ 'btn--active': panel.open && panel.tab === 'variable-outline' } | ||
) } | ||
onClick={ onToggle } | ||
> Variables </button> | ||
</Fill>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters