Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSS-129: Manage liquidity #13

Merged
merged 8 commits into from
Nov 24, 2020
Merged

PSS-129: Manage liquidity #13

merged 8 commits into from
Nov 24, 2020

Conversation

Asmadek
Copy link
Contributor

@Asmadek Asmadek commented Nov 23, 2020

Task

PSS-129: Liquidity actions pages .

Changes

  1. Add pages for add and remove liquidity
  2. Minor fixes

Author

Signed-off-by: Aleksandr Makhnev [email protected]

@@ -17,18 +17,13 @@ export default class TokenLogo extends Mixins(TranslationMixin) {
@Prop({ type: String, default: LogoSize.MEDIUM, required: false }) readonly size!: LogoSize

get tokenClasses (): string {
let classes = 'token-logo'
const classes = ['token-logo']
Copy link
Contributor

@alexnatalia alexnatalia Nov 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could have special variable with 'token-logo' class and use it like base/prefix for all classes in this block.

{{ t('exchange.max') }}
</s-button>
<s-button type="tertiary" size="small" icon="chevron-bottom-rounded" class="el-button--choose-token" @click="secondModalVisible = true">
<token-logo :token="secondToken.symbol || ''" size="small" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now we copy the second part for token attribute all the time. Maybe it's better to check it in TokenLogo prop and add '' value there?

</s-form>

<div v-if="areTokensSelected" class="card">
<div class="card__title">{{ t('createPair.pricePool') }}</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have special component in UI Lib. It's called Card. It has title and body parts. Maybe we could use it here and in other similar places.

import SelectToken from '@/components/SelectToken.vue'
import ConfirmCreatePair from '@/components/ConfirmCreatePair.vue'
import CreatePairSubmit from '@/components/CreatePairSubmit.vue'
import TokenLogo from '@/components/TokenLogo.vue'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you decrease number of imports and use lazyComponent(...) insteadof it, please? You can check example in https://github.com/soramitsu/polkaswap-exchange-web/pull/10/files#diff-484acf880bb98b33ba7022d0a6d9b5494b5ca56ec9437161ced1454efe17eb52

font-size: $s-font-size-small;
}
}
.logo {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this block, please? it seems that we don't need it anymore.

/>
</s-form-item>
<div v-if="firstToken" class="token">
<s-button v-if="connected" class="el-button--max" type="tertiary" size="small" @click="handleFirstMaxValue">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you play with buttons border-radius and size please?
We should add borderRadius="mini" for el-button--max and el-button--empty-token, borderRadius="medium" for el-button--choose-token, also we colud remove size="medium" from all buttons, because this is a default value.
After that we could clean styles a bit, like remove border-radius properties and heights in some places.

@@ -0,0 +1,528 @@
<template>
<div class="remove-liquidity-container">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you play with all comments from AddLiquidity component in this file too, please?

@Asmadek Asmadek merged commit 65a0017 into develop Nov 24, 2020
@Asmadek Asmadek deleted the feature/PSS-129-Add-liquidity branch November 24, 2020 12:35
sorabot pushed a commit that referenced this pull request Feb 15, 2023
wpi86 pushed a commit that referenced this pull request Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants