Skip to content

Commit

Permalink
fix: play page delete comments error
Browse files Browse the repository at this point in the history
  • Loading branch information
devrsi0n committed May 1, 2023
1 parent 753a1c5 commit e4a2770
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
4 changes: 4 additions & 0 deletions apps/main/src/pages/play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const getStaticProps: GetStaticProps<StaticProps> = async (): Promise<
createdAt: {
lt: beforeDate,
},
// Only delete comments that have no replies or there'll be a prisma error
replies: {
none: {},
},
page: {
url: `${getAppURL()}/play`,
},
Expand Down
1 change: 0 additions & 1 deletion packages/configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dependencies": {
"@chirpy-dev/tsconfigs": "workspace:*",
"@radix-ui/colors": "0.1.8",
"@tailwindcss/line-clamp": "0.4.2",
"@tailwindcss/typography": "0.5.8",
"color-convert": "2.0.1",
"postcss": "8.4.19",
Expand Down
1 change: 0 additions & 1 deletion packages/configs/tailwind.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ module.exports = {
},
},
plugins: [
require('@tailwindcss/line-clamp'),
require('@tailwindcss/typography'),
plugin(function ({ addVariant, e, postcss }) {
addVariant('firefox', ({ container, separator }) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/blocks/theme-editor/theme-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function ThemeEditor(props: ThemeEditorProps): JSX.Element {
await saveTheme(newTheme);
};
const primaryColorOptions = useColors({ level: '900' });

console.log({ widgetTheme });
return (
<section className="px-2">
<PageTitle className="mb-10">Theme of {props.project?.name}</PageTitle>
Expand Down Expand Up @@ -122,8 +122,8 @@ export function ThemeEditor(props: ThemeEditorProps): JSX.Element {
label="Background"
hintText="Remember to save a color for dark/light mode as well"
defaultValue={hslToHex(
widgetTheme?.colors[activeMode].bg ||
siteTheme.colors[activeMode].bg ||
widgetTheme?.colors[activeMode]?.bg ||
siteTheme.colors[activeMode]?.bg ||
'#fff',
)}
onSelectColor={handleSaveBackground}
Expand Down
16 changes: 3 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit e4a2770

@vercel
Copy link

@vercel vercel bot commented on e4a2770 May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.