-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): paginated data in petition view (#14631)
* fix(web): paginated data in petition view * Update apps/web/screens/PetitionView/PetitionView.tsx Co-authored-by: kksteini <[email protected]> * chore: nx format:write update dirty files * revert --------- Co-authored-by: kksteini <[email protected]> Co-authored-by: andes-it <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a62ffa8
commit 5cd0ad6
Showing
5 changed files
with
125 additions
and
108 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import format from 'date-fns/format' | ||
|
||
export const formatDate = (date: string) => { | ||
try { | ||
return format(new Date(date), 'dd.MM.yyyy') | ||
} catch { | ||
return date | ||
} | ||
} | ||
|
||
export const getBaseUrl = () => { | ||
const baseUrl = | ||
window.location.origin === 'http://localhost:4200' | ||
? 'http://localhost:4242' | ||
: window.location.origin | ||
|
||
return `${baseUrl}/umsoknir/undirskriftalisti` | ||
} | ||
|
||
export const pageSize = 10 |