Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5f7e130
commit 8696052
Showing
5 changed files
with
84 additions
and
41 deletions.
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
packages/app-desktop/gui/ConfigScreen/controls/ToggleAdvancedSettingsButton.tsx
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,24 @@ | ||
|
||
import * as React from 'react'; | ||
import Button, { ButtonLevel } from '../../Button/Button'; | ||
import { _ } from '@joplin/lib/locale'; | ||
|
||
interface Props { | ||
onClick: ()=> void; | ||
advancedSettingsVisible: boolean; | ||
} | ||
|
||
const ToggleAdvancedSettingsButton: React.FunctionComponent<Props> = props => { | ||
const iconName = props.advancedSettingsVisible ? 'fa fa-angle-down' : 'fa fa-angle-right'; | ||
return ( | ||
<div style={{ marginBottom: 10 }}> | ||
<Button | ||
level={ButtonLevel.Secondary} | ||
onClick={props.onClick} | ||
iconName={iconName} | ||
title={_('Show Advanced Settings')} | ||
/> | ||
</div> | ||
); | ||
}; | ||
export default ToggleAdvancedSettingsButton; |
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