-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 Correção na aparição do toast na tela de abrir chamado
- Loading branch information
Wellington Braga
committed
Mar 15, 2024
1 parent
cc19ed8
commit b2e61fa
Showing
7 changed files
with
69 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export const LS_KEY_1_TICKET_RECORD = "@services:ticket:beingRegistered:1"; | ||
export const LS_KEY_2_TICKET_RECORD = "@services:ticket:beingRegistered:2"; | ||
export const LS_KEY_3_TICKET_RECORD = "@services:ticket:beingRegistered:3"; | ||
export const SS_KEY_DATA_WAS_RECOVERY = "@services:ticket:wasRecovery"; | ||
export const SS_KEY_USER_PREVIOUS_PAGE = "@services:user:previous:page"; | ||
export const CS_KEY_USER_DEVICE_TYPE = "@services:user:device:type"; | ||
export const CS_KEY_USER_RELIABLE_AGENT = "@services:user:reliable:agent"; | ||
export const HD_KEY_USER_RELIABLE_AGENT = "x-reliable-agent"; | ||
export const HD_KEY_USER_DEVICE_TYPE = "x-user-device-type"; | ||
export const HD_KEY_USER_DEVICE_TYPE = "x-user-device-type"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { | ||
LS_KEY_1_TICKET_RECORD, | ||
LS_KEY_2_TICKET_RECORD, | ||
LS_KEY_3_TICKET_RECORD, | ||
SS_KEY_DATA_WAS_RECOVERY, | ||
} from "@/utils"; | ||
|
||
const resetForm = () => { | ||
localStorage.removeItem(LS_KEY_1_TICKET_RECORD); | ||
localStorage.removeItem(LS_KEY_2_TICKET_RECORD); | ||
localStorage.removeItem(LS_KEY_3_TICKET_RECORD); | ||
sessionStorage.removeItem(SS_KEY_DATA_WAS_RECOVERY); | ||
}; | ||
|
||
export { resetForm }; | ||
import { | ||
LS_KEY_1_TICKET_RECORD, | ||
LS_KEY_2_TICKET_RECORD, | ||
LS_KEY_3_TICKET_RECORD, | ||
} from "@/utils"; | ||
|
||
const resetForm = () => { | ||
localStorage.removeItem(LS_KEY_1_TICKET_RECORD); | ||
localStorage.removeItem(LS_KEY_2_TICKET_RECORD); | ||
localStorage.removeItem(LS_KEY_3_TICKET_RECORD); | ||
}; | ||
|
||
export { resetForm }; |