This repository has been archived by the owner on Sep 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add info box for user with no default address (#793)
* adding infobox to home for users without a default address * hide on mobile * add linked address condition * DefaultAddressInfoBox * condition back to home and discussion * InfoBox sryling update
- Loading branch information
Showing
6 changed files
with
63 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2019-2020 @paritytech/polkassembly authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the Apache-2.0 license. See the LICENSE file for details. | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import InfoBox from 'src/ui-components/InfoBox'; | ||
|
||
const DefaultAddressInfoBox = () => { | ||
|
||
return ( | ||
<InfoBox | ||
className='default-address-infobox' | ||
dismissable={true} | ||
name='defaultAddress' | ||
title='Default Address is here!' | ||
> | ||
<p><Link to='/settings'>Visit your settings</Link> to set a default address and let other users see your on-chain identity.</p> | ||
<p>If you don't have any on-chain identity yet, | ||
<a href='https://wiki.polkadot.network/docs/en/mirror-learn-identity#setting-an-identity' rel='noopener noreferrer' target='_blank'>here is how to set it up</a>.</p> | ||
</InfoBox> | ||
); | ||
}; | ||
|
||
export default DefaultAddressInfoBox; |
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
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