-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): fixes/improvements (#1275)
- Loading branch information
1 parent
0de8286
commit 9cef866
Showing
12 changed files
with
104 additions
and
240 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
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import React from 'react'; | ||
import { useBackend } from 'src/contexts/backend/backend'; | ||
import { useQueryClient } from 'src/contexts/queryClient'; | ||
import { useSigningClient } from 'src/contexts/signerClient'; | ||
|
||
const withIpfsAndKeplr = (Component) => (props) => { | ||
const { ipfsApi, senseApi } = useBackend(); | ||
const { signer, signingClient } = useSigningClient(); | ||
const withIpfsAndKeplr = (Component: React.ComponentType) => | ||
function WithIpfsAndKeplr(props: any) { | ||
const { ipfsApi, senseApi } = useBackend(); | ||
const { signer, signingClient } = useSigningClient(); | ||
const queryClient = useQueryClient(); | ||
|
||
return ( | ||
<Component | ||
{...props} | ||
ipfsApi={ipfsApi} | ||
signer={signer} | ||
signingClient={signingClient} | ||
senseApi={senseApi} | ||
/> | ||
); | ||
}; | ||
return ( | ||
<Component | ||
{...props} | ||
ipfsApi={ipfsApi} | ||
signer={signer} | ||
signingClient={signingClient} | ||
senseApi={senseApi} | ||
queryClient={queryClient} | ||
/> | ||
); | ||
}; | ||
|
||
export default withIpfsAndKeplr; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,133 +1,29 @@ | ||
import Tooltip from '../../../components/tooltip/tooltip'; | ||
import share from '../../../image/share.svg'; | ||
import telegram from './telegram-icon.svg'; | ||
import { LinkWindow } from '../../../components/link/link'; | ||
import useMediaQuery from '../../../hooks/useMediaQuery'; | ||
import React from 'react'; | ||
import styles from './Telegram.module.scss'; | ||
|
||
export function Telegram() { | ||
// const mediaQuery = useMediaQuery('(min-width: 768px)'); | ||
|
||
if (true) { | ||
return ( | ||
<div | ||
// id="github-bar" | ||
className={styles.wrapper} | ||
style={{ | ||
display: 'flex', | ||
// position: 'fixed', | ||
// left: '0', | ||
// bottom: 0, | ||
// margin: '0px 0px 28px 20px', | ||
// fontSize: '14px', | ||
// background: '#000c', | ||
// zIndex: 4, | ||
// marginLeft: 15, | ||
}} | ||
> | ||
<LinkWindow to="https://t.me/cyber"> | ||
<img | ||
alt="telegram" | ||
style={{ width: 30, height: 30 }} | ||
src={telegram} | ||
/> | ||
|
||
<span>t/eng</span> | ||
</LinkWindow> | ||
function Telegram() { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<LinkWindow to="https://t.me/CyberGlobalHub"> | ||
<img alt="telegram" style={{ width: 30, height: 30 }} src={telegram} /> | ||
|
||
<LinkWindow to="https://t.me/CyberGlobalHub"> | ||
<img | ||
alt="telegram" | ||
style={{ width: 30, height: 30 }} | ||
src={telegram} | ||
/> | ||
<span>t/eng</span> | ||
</LinkWindow> | ||
|
||
<span>t/ru</span> | ||
</LinkWindow> | ||
<LinkWindow to="https://t.me/bostrom_news"> | ||
<img alt="telegram" style={{ width: 30, height: 30 }} src={telegram} /> | ||
|
||
<LinkWindow to="https://t.me/bostrom_news"> | ||
<img | ||
alt="telegram" | ||
style={{ width: 30, height: 30 }} | ||
src={telegram} | ||
/> | ||
<span>t/news</span> | ||
</LinkWindow> | ||
|
||
<span>t/news</span> | ||
</LinkWindow> | ||
</div> | ||
); | ||
} | ||
<LinkWindow to="https://t.me/fameofcyber"> | ||
<img alt="telegram" style={{ width: 30, height: 30 }} src={telegram} /> | ||
|
||
return ( | ||
// <div | ||
// id="github-bar" | ||
// style={{ | ||
// // position: 'fixed', | ||
// left: '0', | ||
// bottom: 0, | ||
// margin: '0px 0px 28px 20px', | ||
// fontSize: '14px', | ||
// background: '#000c', | ||
// zIndex: 4, | ||
// marginLeft: 15, | ||
// }} | ||
// > | ||
<Tooltip | ||
hideBorder | ||
placement="right" | ||
tooltip={ | ||
<div | ||
style={ | ||
{ | ||
// display: 'flex', | ||
// alignItems: 'center', | ||
// fontSize: '14px', | ||
// gap: '20px', | ||
// background: '#000c', | ||
// padding: 5, | ||
} | ||
} | ||
> | ||
<LinkWindow to="https://t.me/cyber/47885"> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
color: '#36D6AE', | ||
whiteSpace: 'nowrap', | ||
}} | ||
> | ||
feedback{' '} | ||
<img alt="share" style={{ width: 20, height: 20 }} src={share} /> | ||
</div> | ||
</LinkWindow> | ||
<LinkWindow to="https://t.me/cyber/47896"> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
color: '#36D6AE', | ||
whiteSpace: 'nowrap', | ||
}} | ||
> | ||
join movement{' '} | ||
<img alt="share" style={{ width: 20, height: 20 }} src={share} /> | ||
</div> | ||
</LinkWindow> | ||
</div> | ||
} | ||
> | ||
<LinkWindow to="https://t.me/cyber"> | ||
<div> | ||
<img | ||
alt="telegram" | ||
style={{ width: 30, height: 30 }} | ||
src={telegram} | ||
/> | ||
</div> | ||
<span>t/validators</span> | ||
</LinkWindow> | ||
</Tooltip> | ||
// {/* </div> */} | ||
</div> | ||
); | ||
} | ||
|
||
export default Telegram; |
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.