-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitting creator lock components into separate files (#246)
* Splitting creator lock components into separate files * Changing stories to use direct lock subcomponents * Lint fixes * Parameterizing at a lower level in CreatorLock * Minor style fixes
- Loading branch information
Showing
4 changed files
with
130 additions
and
122 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
35 changes: 35 additions & 0 deletions
35
unlock-app/src/components/creator/lock/CreatorLockConfirming.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,35 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import UnlockPropTypes from '../../../propTypes' | ||
|
||
export function CreatorLockConfirming({ lock }) { | ||
return ( | ||
<LockStatus> | ||
<LockStatusLabel> | ||
Pending | ||
</LockStatusLabel> | ||
</LockStatus> | ||
) | ||
} | ||
|
||
CreatorLockConfirming.propTypes = { | ||
lock: UnlockPropTypes.lock, | ||
} | ||
|
||
export default CreatorLockConfirming | ||
|
||
const LockStatus = styled.div` | ||
padding: -10px; | ||
margin: 0; | ||
margin-top: -10px; | ||
margin-bottom: -10px; | ||
background-color: var(--lightgrey); | ||
text-align: center; | ||
font-family: "IBM Plex Sans", sans-serif; | ||
font-weight: 200; | ||
color: var(--grey); | ||
` | ||
|
||
const LockStatusLabel = styled.div` | ||
margin-top: 30px; | ||
` |
43 changes: 43 additions & 0 deletions
43
unlock-app/src/components/creator/lock/CreatorLockSaved.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,43 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import UnlockPropTypes from '../../../propTypes' | ||
import Icons from '../../interface/icons' | ||
|
||
export function CreatorLockSaved({ lock }) { | ||
return ( | ||
<LockIconBar> | ||
<LockIconBarIcon> | ||
<Icons.Withdraw /> | ||
</LockIconBarIcon> | ||
<LockIconBarIcon> | ||
<Icons.Edit /> | ||
</LockIconBarIcon> | ||
<LockIconBarIcon> | ||
<Icons.Download /> | ||
</LockIconBarIcon> | ||
<LockIconBarIcon> | ||
<Icons.Code /> | ||
</LockIconBarIcon> | ||
</LockIconBar> | ||
) | ||
} | ||
|
||
CreatorLockSaved.propTypes = { | ||
lock: UnlockPropTypes.lock, | ||
} | ||
|
||
export default CreatorLockSaved | ||
|
||
const LockIconBar = styled.div` | ||
text-align: right; | ||
padding-right: 10px; | ||
padding: 0; | ||
margin: 0; | ||
font-size: 28px; | ||
` | ||
|
||
const LockIconBarIcon = styled.div` | ||
display: inline-block; | ||
margin-right: 10px; | ||
cursor: pointer; | ||
` |
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