Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Dependencies/styles.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import styled from 'react-emotion';
import Card from '@material-ui/core/Card';
import Chip from '@material-ui/core/Chip';

import { fontWeight } from '../../utils/styles/sizes';
import Text from '../../muiComponents/Text';
import Card from '../../muiComponents/Card';

export const CardWrap = styled(Card)({
'&&': {
Expand Down
2 changes: 1 addition & 1 deletion src/components/DetailSidebar/DetailSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { ReactElement } from 'react';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';

import { ActionBar } from '../ActionBar/ActionBar';
Expand All @@ -11,6 +10,7 @@ import Install from '../Install';
import Repository from '../Repository/Repository';
import { DetailContext } from '../../pages/Version';
import List from '../../muiComponents/List';
import Card from '../../muiComponents/Card';

import { TitleListItem, TitleListItemText, PackageDescription, PackageVersion } from './styles';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Help/styles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Card from '@material-ui/core/Card';
import styled from 'react-emotion';

import { default as Typography } from '../../muiComponents/Heading';
import Card from '../../muiComponents/Card';

export const CardStyled = styled(Card)({
'&&': {
Expand Down
2 changes: 1 addition & 1 deletion src/components/NotFound/styles.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { default as MuiCard } from '@material-ui/core/Card';
import styled from 'react-emotion';

import { default as Typography } from '../../muiComponents/Heading';
import List from '../../muiComponents/List';
import { default as MuiCard } from '../../muiComponents/Card';

export const Wrapper = styled('div')({
display: 'flex',
Expand Down
10 changes: 10 additions & 0 deletions src/muiComponents/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React, { forwardRef } from 'react';
import { default as MaterialUICard, CardProps } from '@material-ui/core/Card';

type CardRef = HTMLDivElement;

const Card = forwardRef<CardRef, CardProps>(function Card(props, ref) {
return <MaterialUICard {...props} ref={ref} />;
});

export default Card;
1 change: 1 addition & 0 deletions src/muiComponents/Card/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Card';