Skip to content

Commit

Permalink
Fix issues in react files
Browse files Browse the repository at this point in the history
  • Loading branch information
Akzuu committed Apr 17, 2024
1 parent 5dfbd51 commit fa18a5e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import styles from './Footer.module.scss';
import { ReactComponent as Tayttopaikka } from '../../svg/tayttopaikka.svg';
import Tayttopaikka from '../../svg/tayttopaikka.svg?react';
import happihakkiInstructions from '../../Files/happihakki-instructions.pdf';

export const Footer: React.FC = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type RegisterFormFields = {
turnstileToken: string;
};

const TURNSTILE_SITE_KEY = process.env.REACT_APP_TURNSTILE_SITE_KEY;
const TURNSTILE_SITE_KEY = import.meta.env.VITE_TURNSTILE_SITE_KEY;

export const RegisterForm: React.FC = () => {
if (TURNSTILE_SITE_KEY === undefined) {
Expand Down
1 change: 0 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import '@fontsource/roboto';
import 'bootstrap/dist/css/bootstrap.min.css';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/apiRequests/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
import { getValidToken } from '../auth';

const AXIOS_CONFIG: AxiosRequestConfig = {
baseURL: process.env.REACT_APP_BACKEND_URL,
baseURL: import.meta.env.VITE_BACKEND_URL,
};

export const getAsync = async <Response>(
Expand Down
4 changes: 2 additions & 2 deletions src/views/FrontPage/FrontPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import { BsArrowLeftCircle } from 'react-icons/bs';
import { ReactComponent as Tayttopaikka } from '../../svg/tayttopaikka.svg';
import { ReactComponent as D12 } from '../../svg/D12.svg';
import Tayttopaikka from '../../svg/tayttopaikka.svg?react';
import D12 from '../../svg/D12.svg?react';
import { Outlet, Link, useLocation } from 'react-router-dom';
import styles from './FrontPage.module.scss';
import { Container } from 'react-bootstrap';
Expand Down

0 comments on commit fa18a5e

Please sign in to comment.