Skip to content

Commit

Permalink
code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Sep 28, 2023
1 parent 0231823 commit 36ab898
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modelina-website/src/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable no-useless-escape, security/detect-object-injection, sonarjs/no-duplicate-string */
import { useState } from 'react';
import React, { useState } from 'react';
import Highlight from 'react-syntax-highlighter';
import { registerLanguage } from 'lowlight';
import IconClipboard from './icons/Clipboard';
import Caption from './Caption';
import React from 'react';

const theme = {
hljs: {
display: 'inline-block',
Expand Down
2 changes: 1 addition & 1 deletion modelina-website/src/pages/docs/[[...slug]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
*/
export const getStaticPaths: GetStaticPaths = async () => {
const paths: any[] = []
for (let [slug, item] of Object.entries(DocsList.unwrapped)) {
for (let slug of Object.keys(DocsList.unwrapped)) {
const split = slug.split('/');
let param = {
params: {
Expand Down

0 comments on commit 36ab898

Please sign in to comment.