Skip to content

Commit

Permalink
Merge pull request #4 from rarimo/fix/remove-redirect-in-tiles
Browse files Browse the repository at this point in the history
fix dashboard tiles
  • Loading branch information
WhiteNik16 authored Dec 11, 2023
2 parents 4601f99 + 157ebc3 commit db94ccc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rarime-landing",
"private": true,
"version": "0.2.0",
"version": "0.2.1",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
1 change: 0 additions & 1 deletion src/components/HomeTilesSection/HomeTilesSection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
height: to-rem(789);
overflow: hidden;
position: relative;
cursor: pointer;
@include respond-to(medium) {
width: 100%;
margin-top: to-rem(48);
Expand Down
8 changes: 1 addition & 7 deletions src/components/HomeTilesSection/Tiles/HomeTileDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ import { useTranslation } from 'react-i18next'

import { Icon } from '@/components'

import { CONFIG } from '../../../config'

const HomeTileDashboard = () => {
const { t } = useTranslation()

const redirectToDashboard = () => {
window.open(CONFIG.dashboardLink)
}

return (
<div className='home-tiles-section__tile' data-aos='fade-up' onClick={redirectToDashboard}>
<div className='home-tiles-section__tile' data-aos='fade-up'>
<h6 className='home-tiles-section__tile-title'>{t('home-tiles-section.title-4-part-1')}</h6>
<strong className='home-tiles-section__tile-title'>
{t('home-tiles-section.title-4-part-2')}
Expand Down
2 changes: 1 addition & 1 deletion src/localization/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"header": {
"button": "Install RariMe Snap",
"button-dashboard": "RariMe Dashboard"
"button-dashboard": "RariMe app"
},
"home-hero-section": {
"title-part-1": "One",
Expand Down

0 comments on commit db94ccc

Please sign in to comment.