-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename component name Move messages to used component Update storybook config and restore staking stories back Translate timestamp using locale
- Loading branch information
1 parent
8e01208
commit 6cc7ef3
Showing
18 changed files
with
271 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
import { observer } from 'mobx-react'; | ||
import DelegationInfo from './DelegationInfo'; | ||
import styles from './Delegation.scss'; | ||
|
||
type Props = { currentLocale: string, timeLeft: number }; | ||
|
||
@observer | ||
export default class Delegation extends Component<Props> { | ||
render() { | ||
const { currentLocale, timeLeft } = this.props; | ||
|
||
return ( | ||
<div className={styles.component}> | ||
<div className={styles.mainContent}> | ||
<DelegationInfo currentLocale={currentLocale} timeLeft={timeLeft} /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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,26 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
import { observer } from 'mobx-react'; | ||
import BlockGenerationInfo from './BlockGenerationInfo'; | ||
import StakingSwitch from './StakingSwitch'; | ||
import StakingSystemState from './StakingSystemState'; | ||
import styles from './Staking.scss'; | ||
|
||
@observer | ||
export default class Settings extends Component<any> { | ||
render() { | ||
return ( | ||
<div className={styles.component}> | ||
<div className={styles.leftSide}> | ||
<div className={styles.mainContent}> | ||
<BlockGenerationInfo /> | ||
</div> | ||
</div> | ||
<div className={styles.rightSide}> | ||
<StakingSwitch active /> | ||
<StakingSystemState /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
source/renderer/app/components/staking/legacy/Staking.scss
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,21 @@ | ||
@import './stakingConfig'; | ||
|
||
.component { | ||
height: 100%; | ||
display: flex; | ||
padding: 20px; | ||
background-color: var(--theme-staking-background-color); | ||
} | ||
|
||
.leftSide { | ||
flex: 1; | ||
margin-right: 20px; | ||
|
||
.mainContent { | ||
@extend %contentBorderAndBackground; | ||
} | ||
} | ||
|
||
.rightSide { | ||
width: 240px; | ||
} |
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
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
Oops, something went wrong.