forked from decentraland/marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: bumpies * feat: show right mana symbol * fix: mana symbol margin
- Loading branch information
Showing
8 changed files
with
71 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,11 @@ | ||
.dcl.field .ManaField.ui.input input, | ||
.ui.form .dcl.field .ManaField.ui.input input { | ||
padding-left: 36px !important; | ||
} | ||
|
||
.ManaField .dcl.mana.ui.header { | ||
position: absolute; | ||
left: 8px; | ||
bottom: 12px; | ||
margin-bottom: 0px; | ||
} |
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 @@ | ||
import React from 'react' | ||
import { Field, Mana } from 'decentraland-ui' | ||
import { Props } from './ManaField.types' | ||
import './ManaField.css' | ||
|
||
export default class ManaField extends React.PureComponent<Props> { | ||
render() { | ||
const { className, network, ...rest } = this.props | ||
let classes = `ManaField ${network}` | ||
if (className) { | ||
classes += ' ' + className | ||
} | ||
return ( | ||
<Field | ||
{...rest} | ||
className={classes} | ||
icon={<Mana network={network} />} | ||
iconPosition="left" | ||
/> | ||
) | ||
} | ||
} |
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,6 @@ | ||
import { Network } from '@dcl/schemas' | ||
import { FieldProps } from 'decentraland-ui' | ||
|
||
export type Props = FieldProps & { | ||
network: Network | ||
} |
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,2 @@ | ||
import ManaField from './ManaField' | ||
export { ManaField } |
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