File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed
Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 11import PropTypes from "prop-types" ;
22
3- import "./Container.scss" ;
3+ // Tailwind CSS is now used for styling. Custom SCSS removed.
44
55export default function Container ( props = { } ) {
66 const { className = "" } = props ;
77
8- return < div className = { `container ${ className } ` } > { props . children } </ div > ;
8+ return (
9+ < div className = { `w-full max-w-screen-lg mx-auto ${ className } ` } >
10+ { props . children }
11+ </ div >
12+ ) ;
913}
1014
1115Container . propTypes = {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33exports [` Container renders correctly with children and className 1` ] = `
44<div
5- class = " container test-class"
5+ class = " w-full max-w-screen-lg mx-auto test-class"
66>
77 <p >
88 Child content
@@ -12,7 +12,7 @@ exports[`Container renders correctly with children and className 1`] = `
1212
1313exports [` Container renders correctly without className 1` ] = `
1414<div
15- class = " container "
15+ class = " w-full max-w-screen-lg mx-auto "
1616>
1717 <span >
1818 Simple child
You can’t perform that action at this time.
0 commit comments