Skip to content

Commit

Permalink
finally the web is deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeleo03 committed Jul 22, 2023
1 parent ffc588c commit 8971dc0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Sidebar from "./components/Sidebar/Sidebar";
import Splashcreen from "./components/Splashscreen/Splashscreen";
import { ToastContainer } from 'react-toastify';

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

const backgroundStyle = {
backgroundColor : "#ECEEF9",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/FakulForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from "react";
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface FakulFormProps {
setNewFakulAdd: (value : boolean) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/FakulUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import UploadImage from '../../assets/images/upload.png'

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface FakulUploadProps {
setNewFakulAdd: (value : boolean) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/JadwalForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import Dropdown from "../Dropdown/Dropdown";

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface jadwalFormProps {
jurusanData: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/JurusanForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import Dropdown from "../Dropdown/Dropdown";

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface jurusanFormProps {
fakultasData: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/JurusanUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import UploadImage from '../../assets/images/upload.png'

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface JurusanUploadProps {
fakultasData: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/MatkulForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { toast } from 'react-toastify';
import Dropdown from "../Dropdown/Dropdown";
import 'react-toastify/dist/ReactToastify.css';

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface matkulFormProps {
jurusanData: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/components/Forms/MatkulUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import UploadImage from '../../assets/images/upload.png'

const url = import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV;
const url = import.meta.env.VITE_NODE_ENV=='development' ? import.meta.env.VITE_REACT_APP_BACKEND_URL_DEV : import.meta.env.VITE_REACT_APP_BACKEND_URL;

interface MatkulUploadProps {
jurusanData: string[];
Expand Down

0 comments on commit 8971dc0

Please sign in to comment.