Skip to content

Commit

Permalink
Add comment box
Browse files Browse the repository at this point in the history
  • Loading branch information
dv297 committed Oct 21, 2022
1 parent 3ea974f commit 52692f3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.next/
.idea/
docs-build/
4 changes: 2 additions & 2 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Deploy
on:
# Runs on pushes targeting the default branch
push:
branches: [ 'main' ]
branches: ['main']
jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -23,4 +23,4 @@ jobs:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs-build # The folder that the build-storybook script generates files.
CLEAN: true # Automatically remove deleted files from the deploy branch
TARGET_FOLDER: docs # The folder that we serve our Storybook files from
TARGET_FOLDER: docs # The folder that we serve our Storybook files from
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.next/
.idea/
.idea/
docs-build/
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = withBundleAnalyzer(
reactStrictMode: true,
images: {
domains: [
'planner-user-image-upload.s3.us-east-1.amazonaws.com',
'tailwindui.com',
'avatars.githubusercontent.com',
'cdn.sanity.io',
Expand Down
9 changes: 7 additions & 2 deletions src/components/pages/issue/IssueAuditEntryListingFactory.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ReactNode } from 'react';
import dynamic from 'next/dynamic';
import Image from 'next/image';
import { z } from 'zod';

import { IssueAuditEntrySchema } from '@src/schemas/IssueSchema';
Expand Down Expand Up @@ -29,10 +30,12 @@ const CommentListing = (props: IssueAuditEntryListingProps) => {
return (
<>
<div className="relative">
<img
<Image
className="flex h-10 w-10 items-center justify-center rounded-full bg-gray-400 ring-1 ring-white"
src={user.image}
alt="User image"
height={40}
width={40}
/>
</div>
<div className="min-w-0 flex-1">
Expand All @@ -59,10 +62,12 @@ const HistoryListing = (props: IssueAuditEntryListingProps) => {
return (
<>
<div className="relative">
<img
<Image
className="flex h-10 w-10 items-center justify-center rounded-full bg-gray-400 ring-1 ring-white"
src={user.image}
alt="User image"
height={40}
width={40}
/>
</div>
<div className="min-w-0 flex-1">
Expand Down
1 change: 0 additions & 1 deletion src/pages/api/issue/audit/[...issueTag].ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
GetSingleIssueInputSchema,
IssueAuditEntryCreateBodySchema,
IssueAuditEntryType,
UpdateSingleIssueInputSchema,
} from '@src/schemas/IssueSchema';
import extractSingle from '@src/utils/extractSingle';
import routeMatcher from '@src/utils/routeMatcher';
Expand Down
8 changes: 2 additions & 6 deletions src/stories/SimpleMarkdownField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';

import Form from '@src/components/common/Form';
import FormSubmitButton from '@src/components/common/FormSubmitButton';
import SimpleMarkdownField, {
SimpleMarkdownFieldProps,
} from '@src/components/common/SimpleMarkdownField';
import SimpleMarkdownField from '@src/components/common/SimpleMarkdownField';

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
Expand All @@ -16,9 +14,7 @@ export default {
} as ComponentMeta<typeof SimpleMarkdownField>;

// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
const Template: ComponentStory<typeof SimpleMarkdownField> = (
args: Partial<SimpleMarkdownFieldProps>
) => {
const Template: ComponentStory<typeof SimpleMarkdownField> = () => {
const [formSubmission, setFormSubmission] = useState('');

return (
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ body {

.wmde-markdown li li {
list-style: circle;
}
}

1 comment on commit 52692f3

@vercel
Copy link

@vercel vercel bot commented on 52692f3 Oct 21, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

planner – ./

planner-dv297.vercel.app
planner-nine.vercel.app
planner-git-main-dv297.vercel.app

Please sign in to comment.