Skip to content

Commit d128864

Browse files
refactor: formatting code in docs-site
1 parent 0607bab commit d128864

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs-site/src/components/Examples/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import CodeExampleComponent from "../Example/index.jsx";
66

77
import "./style.scss";
88
import "react-datepicker/dist/react-datepicker.css";
9-
import { EXAMPLE_CONFIG } from './config.js';
9+
import { EXAMPLE_CONFIG } from "./config.js";
1010

1111
export default class exampleComponents extends React.Component {
1212
componentDidMount() {
@@ -17,7 +17,9 @@ export default class exampleComponents extends React.Component {
1717
handleAnchorClick = (e: React.MouseEvent, id: string): void => {
1818
e.preventDefault();
1919
window.history.replaceState(null, document.title, `#${id}`);
20-
document.getElementById(id)?.scrollIntoView({ behavior: "smooth", block: "start" });
20+
document
21+
.getElementById(id)
22+
?.scrollIntoView({ behavior: "smooth", block: "start" });
2123
};
2224

2325
render() {

docs-site/src/examples/ts/calendarIcon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const calendarIconTS = `
1+
const calendarIconTS = `
22
const Example = () => {
33
const [startDate, setStartDate] = useState<Date | null>(new Date());
44

docs-site/src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import ReactDOM from "react-dom/client";
22
import App from "./components/App";
33

4-
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
4+
const root = ReactDOM.createRoot(
5+
document.getElementById("root") as HTMLElement,
6+
);
57
root.render(<App />);

0 commit comments

Comments
 (0)