Skip to content

Commit ec1329a

Browse files
committed
fix everything?
1 parent 725fec8 commit ec1329a

File tree

13 files changed

+26176
-23705
lines changed

13 files changed

+26176
-23705
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

apps/thesis/components/Commits/CommitListByDate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { Divider, VStack } from '@chakra-ui/layout'
2+
import { Divider, VStack } from '@chakra-ui/react'
33
import { SlimCommit } from '@zkp/types'
44
import { Commit } from './Commit'
55

apps/thesis/components/CustomSidebar/CustomSidebar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ export const CustomSideBar = (props: Props) => {
2525
})
2626
const unemph = useColorModeValue('gray.700', 'gray.300')
2727

28-
const [sort, setSort] = useLocalStorageState<Sorts>('sidebarSort', {
29-
defaultValue: 'alpha',
30-
ssr: true,
31-
})
28+
const [sort, setSort] = useLocalStorageState<Sorts>('sidebarSort', { defaultValue: 'alpha' })
3229

3330
const folderList = useMemo(
3431
() => fileListReducer(Object.values(fileList), sorts[sort]),

apps/thesis/hooks/usePersistantDisclosure.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const usePersistantDisclosure = (storageKey: string, props: UseDisclosure
1818
const onClosePropCallbackRef = useCallbackRef(onCloseProp)
1919
const [isOpenState, setIsOpen] = useLocalStorageState(storageKey, {
2020
defaultValue: props.defaultIsOpen || false,
21-
ssr: true,
2221
})
2322
const [isControlled, isOpen] = useControllableProp(isOpenProp, isOpenState)
2423

apps/thesis/next.config.js

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
11
const withNx = require('@nrwl/next/plugins/with-nx')
22

3-
const withBundleAnalyzer = require('@next/bundle-analyzer')({
4-
enabled: process.env.ANALYZE === 'true',
5-
})
3+
// const withBundleAnalyzer = require('@next/bundle-analyzer')({
4+
// enabled: process.env.ANALYZE === 'true',
5+
// })
66

77
const withPlugins = require('next-compose-plugins')
8-
const withSWRTypes = require('next-typed-api-with-swr')
98
/**
109
* @type {import('next').NextConfig}
1110
*/
1211
const nextConfig = {
1312
/* config options here */
1413
swcMinify: true,
1514
experimental: { nftTracing: true, topLevelAwait: true },
16-
experiments: { topLevelAwait: true },
1715
staticPageGenerationTimeout: 180,
18-
webpack(config, { dev }) {
19-
// if (dev) {
20-
// config.devtool = 'cheap-module-source-map'
21-
// }
22-
config.module.rules = [
23-
...config.module.rules,
24-
// ensure our libs barrel files don't constitute imports
25-
{
26-
test: /.*libs\/.*src\/.*index.ts/i,
27-
sideEffects: false,
28-
},
29-
]
30-
return config
31-
},
3216
images: { domains: ['avatars.githubusercontent.com'] },
3317
}
3418

35-
module.exports = withPlugins([[withNx], [withBundleAnalyzer]], nextConfig)
19+
module.exports = nextConfig

apps/zkp/Components/MDXComponents/MDXLink.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Text } from '@chakra-ui/react'
44
import { PreviewLink } from '../FileViewer'
55
import { MDXComp } from './types'
66

7-
//// @ts-expect-error Yeah hthe types are all over the frigging place here
87
export const MDXLinkBase: MDXComp<'a'> = (
98
props: React.ComponentProps<'a'> & { currentId: string; alias?: string },
109
) => {
@@ -31,7 +30,7 @@ export const MDXLinkBase: MDXComp<'a'> = (
3130
}
3231

3332
const title = alias
34-
return <a>{href}</a>
33+
return <a href={href}>{href}</a>
3534
return (
3635
<PreviewLink
3736
currentId={currentId}

libs/discus/src/lib/components/Comments/EditMenu/EditMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DotsVerticalIcon } from '@heroicons/react/solid'
1+
import { EllipsisVerticalIcon } from '@heroicons/react/24/solid'
22
import { Popover } from '@zkp/popover'
33
import { Button } from '@zkp/ui'
44

@@ -36,7 +36,7 @@ export const EditMenu = (props: EditMenuProps) => {
3636
return (
3737
<Popover
3838
placement="bottom-end"
39-
button={{ children: <DotsVerticalIcon />, className: 'h-6 w-4 text-slate-600' }}
39+
button={{ children: <EllipsisVerticalIcon />, className: 'h-6 w-4 text-slate-600' }}
4040
>
4141
<div className="w-40 bg-white dark:bg-slate-700">
4242
<ul>

libs/git/src/lib/doSomethingAtFileStateChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const doSomethingAtFileStateChange = ({
1818
filename?: string
1919
fileStateFun?: (
2020
filepath: string,
21-
trees: [WalkerEntry, WalkerEntry],
21+
trees: [WalkerEntry | null, WalkerEntry | null],
2222
state: FileStates,
2323
) => Promise<{ [key: string]: any } | undefined>
2424
}) =>

libs/popover/src/lib/popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/solid'
1+
import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/24/solid'
22
import {
33
useState,
44
useRef,

libs/utils/mdx/src/lib/test.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)