Skip to content

feat-reso-164:add new resource of type post#167

Open
elenapvlch wants to merge 6 commits into
developfrom
feat-reso-164
Open

feat-reso-164:add new resource of type post#167
elenapvlch wants to merge 6 commits into
developfrom
feat-reso-164

Conversation

@elenapvlch

Copy link
Copy Markdown
Member

No description provided.

@marinacatbytes

Copy link
Copy Markdown
Contributor

@elenapvlch this one is probably not ready until we have API endpoint to finish it :) let's not merge it for now

addResource?: (newResource: Resource) => void;
}

type Type = "post" | "youtube video" | "";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@elenapvlch I think Type here cannot be empty string :)

? Number(localStorage.getItem("userId"))
: null;
const { user } = useUser(userIdFromLocalStorage);
const [type, setType] = useState<Type>("");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's do "post" by default rather than empty string

Comment thread src/pages/CreateResourcePage/ui/CreateResourcePage.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants