Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
3cbe3a02
Commit
3cbe3a02
authored
3 years ago
by
Derek Schaller
Browse files
Options
Download
Email Patches
Plain Diff
fix lint
parent
4bdd0aee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/packages/core/src/card.tsx
+6
-8
frontend/packages/core/src/card.tsx
with
6 additions
and
8 deletions
+6
-8
frontend/packages/core/src/card.tsx
+
6
-
8
View file @
3cbe3a02
import
*
as
React
from
"
react
"
;
import
styled
from
"
@emotion/styled
"
;
import
type
{
CardHeaderProps
as
MuiCardHeaderProps
}
from
"
@material-ui/core
"
;
import
type
{
CardHeaderProps
as
MuiCardHeaderProps
}
from
"
@material-ui/core
"
;
import
{
Avatar
,
Card
as
MuiCard
,
...
...
@@ -45,9 +45,7 @@ interface CardProps {
children
?:
React
.
ReactNode
|
React
.
ReactNode
[];
}
const
Card
=
({
children
,
...
props
}:
CardProps
)
=>
(
<
StyledCard
{
...
props
}
>
{
children
}
</
StyledCard
>
);
const
Card
=
({
children
,
...
props
}:
CardProps
)
=>
<
StyledCard
{
...
props
}
>
{
children
}
</
StyledCard
>;
interface
CardHeaderProps
extends
Pick
<
MuiCardHeaderProps
,
"
avatar
"
|
"
title
"
>
{}
...
...
@@ -61,7 +59,7 @@ const CardHeader = ({ avatar, title }: CardHeaderProps) => (
avatar
=
{
avatar
}
title
=
{
<
StyledTypography
variant
=
"h3"
>
{
title
}
</
StyledTypography
>
}
/>
)
)
;
const
StyledLandingCard
=
styled
(
Card
)({
border
:
"
none
"
,
...
...
@@ -102,13 +100,13 @@ export const LandingCard = ({ group, title, description, onClick, ...props }: La
</
div
>
<
div
>
<
StyledTypography
variant
=
"h3"
>
{
title
}
</
StyledTypography
>
<
StyledTypography
style
=
{
{
color
:
"
rgba(13, 16, 48, 0.6)
"
}
}
variant
=
"body2"
>
{
description
}
</
StyledTypography
>
<
StyledTypography
style
=
{
{
color
:
"
rgba(13, 16, 48, 0.6)
"
}
}
variant
=
"body2"
>
{
description
}
</
StyledTypography
>
</
div
>
</
MuiCardContent
>
</
CardActionArea
>
</
StyledLandingCard
>
);
export
{
Card
,
StyledCardContent
as
CardContent
,
CardHeader
};
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment