Fix prettier
This commit is contained in:
parent
7e380385b4
commit
317d60b552
@ -26,7 +26,7 @@
|
|||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"src/**/*.{js,jsx,ts,tsx}": [
|
"src/**/*.{js,jsx,ts,tsx}": [
|
||||||
"eslint",
|
"eslint",
|
||||||
"prettier --write",
|
"prettier --write --tab-width 4",
|
||||||
"git add"
|
"git add"
|
||||||
],
|
],
|
||||||
"src/**/*.{json,css,scss,md}": [
|
"src/**/*.{json,css,scss,md}": [
|
||||||
|
12
src/App.tsx
12
src/App.tsx
@ -20,12 +20,12 @@ import "./App.scss";
|
|||||||
import SingleColumn from "./layouts/SingleColumn";
|
import SingleColumn from "./layouts/SingleColumn";
|
||||||
|
|
||||||
const App: React.FC = () => {
|
const App: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<SingleColumn>
|
<SingleColumn>
|
||||||
<div className="topSpacer" />
|
<div className="topSpacer" />
|
||||||
<div className="bottomSpacer" />
|
<div className="bottomSpacer" />
|
||||||
</SingleColumn>
|
</SingleColumn>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
@ -4,8 +4,8 @@ import "./index.scss";
|
|||||||
import App from "./App";
|
import App from "./App";
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<App />
|
<App />
|
||||||
</React.StrictMode>,
|
</React.StrictMode>,
|
||||||
document.getElementById("root")
|
document.getElementById("root")
|
||||||
);
|
);
|
||||||
|
@ -19,11 +19,11 @@ import React from "react";
|
|||||||
import "./SingleColumn.scss";
|
import "./SingleColumn.scss";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SingleColumn: React.FC<IProps> = (props: IProps) => {
|
const SingleColumn: React.FC<IProps> = (props: IProps) => {
|
||||||
return <div className="singleColumnLayout">{props.children}</div>;
|
return <div className="singleColumnLayout">{props.children}</div>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default SingleColumn;
|
export default SingleColumn;
|
||||||
|
Loading…
Reference in New Issue
Block a user