From df9ef31b72576b1614b0b025d26276eec3dce0ab Mon Sep 17 00:00:00 2001 From: Minotriz02 Date: Thu, 26 Sep 2024 10:45:10 -0500 Subject: [PATCH] AC-253 AC in name, precipitation chart changed to the first position and id country in an env file --- .github/workflows/deploy.yml | 5 ++++- src/.env | 1 + src/src/components/menu/Menu.js | 2 +- src/src/pages/dashboard/Dashboard.js | 22 +++++++++++----------- src/src/services/Services.js | 4 ++-- 5 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 src/.env diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 57e1c84..b438aeb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,8 @@ name: Build and Deploy on: [push] permissions: contents: write +env: + REACT_APP_COUNTRY_ID: ${{secrets.REACT_APP_COUNTRY_ID}} jobs: build-and-deploy: concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. @@ -15,10 +17,11 @@ jobs: CI: false run: | cd ./src + echo "REACT_APP_COUNTRY_ID=${{env.REACT_APP_COUNTRY_ID}}" > .env npm ci npm run build - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: - folder: src/build # The folder the action should deploy. \ No newline at end of file + folder: src/build # The folder the action should deploy. diff --git a/src/.env b/src/.env new file mode 100644 index 0000000..77200ff --- /dev/null +++ b/src/.env @@ -0,0 +1 @@ +REACT_APP_COUNTRY_ID='651437a78a8437279ea6ca2c' \ No newline at end of file diff --git a/src/src/components/menu/Menu.js b/src/src/components/menu/Menu.js index 14c3ef1..f840325 100644 --- a/src/src/components/menu/Menu.js +++ b/src/src/components/menu/Menu.js @@ -19,7 +19,7 @@ function Menu() { alt="Aclimate Monitoring Logo" className="d-inline-block align-top" /> - Aclimate Monitoring + AClimate Monitoring diff --git a/src/src/pages/dashboard/Dashboard.js b/src/src/pages/dashboard/Dashboard.js index 614da5e..9500d41 100644 --- a/src/src/pages/dashboard/Dashboard.js +++ b/src/src/pages/dashboard/Dashboard.js @@ -211,33 +211,33 @@ const Dashboard = () => {