Skip to content

Commit

Permalink
chore: update references to master branch to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanxzy committed Dec 28, 2023
1 parent f77c224 commit de0c5a3
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: 'CodeQL'

on:
push:
branches: [master, beta]
branches: [main, beta]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [main]
schedule:
- cron: '19 23 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Examples
on:
push:
branches:
- master
- main
jobs:
release:
name: Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
branches:
- master
- main
- beta
jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'branches':
[
'+([0-9])?(.{+([0-9]),x}).x',
'master',
'main',
'next',
'next-major',
{ name: 'beta', prerelease: true },
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ There are a number of breaking changes in v3.0.0, please read the [release notes

## Examples

[Play with demo](https://cchanxzy.github.io/react-currency-input-field) or view [examples code](https://github.com/cchanxzy/react-currency-input-field/blob/master/src/examples)
[Play with demo](https://cchanxzy.github.io/react-currency-input-field) or view [examples code](https://github.com/cchanxzy/react-currency-input-field/blob/main/src/examples)

[![React Currency Input Demo](demo/demo.gif)](https://cchanxzy.github.io/react-currency-input-field)

Expand All @@ -68,7 +68,7 @@ import CurrencyInput from 'react-currency-input-field';
/>;
```

Have a look in [`src/examples`](https://github.com/cchanxzy/react-currency-input-field/tree/master/src/examples) for more examples on implementing and validation.
Have a look in [`src/examples`](https://github.com/cchanxzy/react-currency-input-field/tree/main/src/examples) for more examples on implementing and validation.

## Props

Expand All @@ -93,7 +93,7 @@ Have a look in [`src/examples`](https://github.com/cchanxzy/react-currency-input
| [disableGroupSeparators](#separators) | `boolean` | `false` | Disable auto adding the group separator between values, eg. 1000 -> 1,000 |
| maxLength | `number` | | Maximum characters the user can enter |
| step | `number` | | Incremental value change on arrow down and arrow up key press |
| transformRawValue | `function` | | Transform the raw value from the input before parsing. Needs to return `string`. |
| transformRawValue | `function` | | Transform the raw value from the input before parsing. Needs to return `string`. |

### Abbreviations

Expand Down
2 changes: 1 addition & 1 deletion src/examples/Example1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Example1: FC = () => {
return (
<div className="row">
<div className="col-12 mb-4">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/master/src/examples/Example1.tsx">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/main/src/examples/Example1.tsx">
<h2>Example 1</h2>
</a>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion src/examples/Example2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Example2: FC = () => {
return (
<div className="row">
<div className="col-12 mb-4">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/master/src/examples/Example2.tsx">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/main/src/examples/Example2.tsx">
<h2>Example 2</h2>
</a>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion src/examples/Example3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Example3: FC = () => {
return (
<div className="row">
<div className="col-12 mb-4">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/master/src/examples/Example3.tsx">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/main/src/examples/Example3.tsx">
<h2>Example 3</h2>
</a>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion src/examples/Example4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const Example4: FC = () => {
return (
<div className="row">
<div className="col-12 mb-4">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/master/src/examples/Example4.tsx">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/main/src/examples/Example4.tsx">
<h2>Example 4</h2>
</a>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion src/examples/FormatValuesExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const FormatValuesExample: FC = () => {
return (
<div className="row">
<div className="col-12 mb-4">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/master/src/examples/FormatValuesExample.tsx">
<a href="https://github.com/cchanxzy/react-currency-input-field/blob/main/src/examples/FormatValuesExample.tsx">
<h2>Format values example</h2>
</a>
<ul>
Expand Down
3 changes: 1 addition & 2 deletions src/examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ <h1>React Currency Input Field</h1>
</ul>
<p>
Please visit the
<a
href="https://github.com/cchanxzy/react-currency-input-field/tree/master/src/examples"
<a href="https://github.com/cchanxzy/react-currency-input-field/tree/main/src/examples"
>Github repository</a
>
to see the source code from examples.
Expand Down

0 comments on commit de0c5a3

Please sign in to comment.