style: auto format codebase

This commit is contained in:
Jean-Philippe Sirois
2021-10-26 13:55:12 -04:00
parent 30f988a5fe
commit cf4d3b2cc8
34 changed files with 457 additions and 378 deletions
+4 -4
View File
@@ -11,9 +11,7 @@ import * as SC from "./styles"
const ALL_SPOTLIGHTS = graphql`
query {
spotlights: allFile(
filter: { sourceInstanceName: { eq: "spotlights" } }
) {
spotlights: allFile(filter: { sourceInstanceName: { eq: "spotlights" } }) {
edges {
node {
relativePath
@@ -42,7 +40,9 @@ function Tree({ item }: { item: IFileOrFolder }) {
)
}
export const SpotlightsSidebar: FC<HTMLAttributes<HTMLDivElement>> = (props) => {
export const SpotlightsSidebar: FC<HTMLAttributes<HTMLDivElement>> = (
props
) => {
const { spotlights } = useStaticQuery(ALL_SPOTLIGHTS)
const tree = useBuildTree(spotlights, "/spotlights")
const sortedTree = sort((a, b) => a.title.localeCompare(b.title), tree)