Skip to content

Commit

Permalink
Merge pull request #315 from universi-me/change#314/renomear-post-par…
Browse files Browse the repository at this point in the history
…a-publicação

Renomeando "post" e "feed" para publicação
  • Loading branch information
710lucas authored Dec 16, 2023
2 parents 9e3e9e4 + fca6b76 commit 4d96b80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/pages/Group/GroupTabs/GroupFeed/GroupFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function GroupFeed(){
<section id="feed" className="group-tab">
<div className="heading top-container">
<div className="go-right">
<Filter setter={setFilterPosts} placeholderMessage={`Buscar posts em ${groupContext.group.name}`}/>
<Filter setter={setFilterPosts} placeholderMessage={`Buscar publicação em ${groupContext.group.name}`}/>
{
groupContext.participants.some(p => p.id == groupContext.loggedData.profile.id)
?
Expand All @@ -45,18 +45,18 @@ export function GroupFeed(){
groupContext.editPost !== undefined ?

<UniversiForm
formTitle={groupContext.editGroup == null ? "Criar post" : "Editar grupo"}
formTitle={groupContext.editGroup == null ? "Criar publicação" : "Editar publicação"}
objects={[
{
DTOName: "groupId", label: "", type: FormInputs.HIDDEN, value: groupContext.group.id
}, {
DTOName: "authorId", label: "", type: FormInputs.HIDDEN, value: groupContext.loggedData.profile.id
}, {
DTOName: "content", label: "Mensagem do post", type: FormInputs.LONG_TEXT, validation: new ValidationComposite<string>().addValidation(new RequiredValidation()).addValidation(new TextValidation())
DTOName: "content", label: "Publicação", type: FormInputs.LONG_TEXT, validation: new ValidationComposite<string>().addValidation(new RequiredValidation()).addValidation(new TextValidation())
}
]}
requisition={groupContext.editPost ? UniversimeApi.Feed.createGroupPost : UniversimeApi.Feed.createGroupPost}
callback={groupContext.refreshData}
callback={() =>{groupContext.refreshData()}}
/>
:
<></>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Group/GroupTabs/GroupTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const EMPTY_LIST_CLASS = "empty-text";

const TABS: GroupTabDefinition[] = [
{
name: 'Feed',
name: 'Publicações',
value: 'feed',
renderer: GroupFeed,
},
Expand Down

0 comments on commit 4d96b80

Please sign in to comment.