Skip to content

Commit

Permalink
fix: enhance modal
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofp4444 committed Dec 18, 2023
1 parent 73d09b5 commit 7f0e17b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion apps/app/components/FeedbackModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ const FeedbackModal: React.FC<DynamicTabsProps> = ({
<Tabs.TabPane tab={tab.tabTitle} key={tab.tabTitle}>
<Input.TextArea
value={tabInfo}
disabled
rows={25}
style={{ resize: "none" }}
placeholder="Nenhuma informação para apresentar"
readOnly={true}
/>
</Tabs.TabPane>
))}
Expand Down
16 changes: 4 additions & 12 deletions apps/app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@ function Dashboard() {
const notify_signup_ninjas = () => {
notify_signup()
.then((response) => {
const successInfo =
response.success || "Nenhuma informação a apresentar";
const failInfo = response.fail || "Nenhuma informação a apresentar";

setTabsInfo((prevTabsInfo) => [
{
tabTitle: "Enviados",
info: successInfo,
info: response.success,
},
{
tabTitle: "Não enviados",
info: failInfo,
info: response.fail,
},
]);
notifyInfo("Enviado com successo!");
Expand All @@ -76,18 +72,14 @@ function Dashboard() {
const notify_selected_ninjas = () => {
notify_selected()
.then((response) => {
const successInfo =
response.success || "Nenhuma informação a apresentar";
const failInfo = response.fail || "Nenhuma informação a apresentar";

setTabsInfo((prevTabsInfo) => [
{
tabTitle: "Enviados",
info: successInfo,
info: response.success,
},
{
tabTitle: "Não enviados",
info: failInfo,
info: response.fail,
},
]);
notifyInfo("Enviado com successo!");
Expand Down

0 comments on commit 7f0e17b

Please sign in to comment.