Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit d0672b3

Browse files
committed
refactor: removes typography component - fixes #149
1 parent ed3c7d1 commit d0672b3

20 files changed

+49
-84
lines changed

dist/index.js

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.modern.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.modern.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/src/pages/LandingPage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import { Typography, HeaderTongue, nameServiceImg, storageImg } from '@rsksmart/rif-ui';
2+
import { HeaderTongue, nameServiceImg, storageImg } from '@rsksmart/rif-ui';
3+
import Typography from '@material-ui/core/Typography'
34
import { Grid, makeStyles } from '@material-ui/core';
45

56
const useStyles = makeStyles((theme) => ({

src/components/atoms/Typography.tsx

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/components/atoms/atoms.test.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
Button, Checkbox, LoginOption, Logo, LogoNavbar, Typography,
2+
Button, Checkbox, LoginOption, Logo, LogoNavbar,
33
} from '.'
44

55
describe('Button component sanity', () => {
@@ -31,9 +31,3 @@ describe('LogoNavbar component sanity', () => {
3131
expect(LogoNavbar).toBeTruthy()
3232
})
3333
})
34-
35-
describe('Typography component sanity', () => {
36-
it('is truthy', () => {
37-
expect(Typography).toBeTruthy()
38-
})
39-
})

src/components/atoms/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import Logo from './Logo'
55
import LogoNavbar from './LogoNavbar'
66
import StyledNavTab from './StyledNavTab'
77
import NetworkIndicator from './NetworkIndicator'
8-
import Typography from './Typography'
98

109
export * from './modal'
1110

@@ -17,5 +16,4 @@ export {
1716
LogoNavbar,
1817
StyledNavTab,
1918
NetworkIndicator,
20-
Typography,
2119
}

src/components/atoms/modal/ModalTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { FC } from 'react'
2-
import Typography from '../Typography'
2+
import Typography from '@material-ui/core/Typography'
33

44
export interface ModalTitleProps {
55
className?: string

src/components/molecules/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { FC, useState } from 'react'
22
import { Accordion as MUIAccordion, AccordionProps as MUIAccordionProps } from '@material-ui/core'
3+
import Typography from '@material-ui/core/Typography'
34
import AccordionDetails from '@material-ui/core/AccordionDetails'
45
import AccordionSummary from '@material-ui/core/AccordionSummary'
56
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles'
67
import ExpandMoreIcon from '@material-ui/icons/ExpandMore'
7-
import { Typography } from '../atoms'
88
import { colors } from '../../theme'
99

1010
interface AccordionProps extends MUIAccordionProps {

0 commit comments

Comments
 (0)