-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: update SetFavoriteButton and graphql.test.js to urql (#3584)
* update setfavoritebutton to urql * make check * convert WizardRouter from Apollo to urql * Revert "convert WizardRouter from Apollo to urql" This reverts commit f15d6b3. * add loading check * remove only * remove info from notice title
- Loading branch information
Showing
4 changed files
with
24 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { gql } from '@apollo/client' | ||
import { gql } from 'urql' | ||
import { print } from 'graphql' | ||
|
||
import { | ||
|
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,5 +1,5 @@ | ||
export default function toTitleCase(str: string): string { | ||
return str.replace(/\w\S*/g, (txt) => { | ||
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase() | ||
return txt.charAt(0).toUpperCase() + txt.slice(1) | ||
}) | ||
} |
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