Skip to content

Commit ce255b0

Browse files
committed
fixed issue with button
1 parent b7ec472 commit ce255b0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/buttons/FrameworkButton.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import React from "react"
33

44
const FrameworkButton = ({ children, className, img, onClick }) => (
55
<button className={`${className} cursor-pointer `} onClick={onClick}>
6-
<span className="flex flex-row">
7-
{children} <img src={img} alt="framework" className="w-6" />
8-
</span>
6+
<div className="grid grid-cols-2 text-center">
7+
<span>{children} </span>
8+
<img src={img} alt="framework" className="w-6 ml-5" />
9+
</div>
910
</button>
1011
)
1112

@@ -17,6 +18,6 @@ FrameworkButton.propTypes = {
1718
}
1819

1920
FrameworkButton.defaultProps = {
20-
className: `font-display rounded-px px-16`,
21+
className: `font-display rounded-px text-right py-1`,
2122
}
2223
export default FrameworkButton

0 commit comments

Comments
 (0)