Skip to content

Commit

Permalink
Fixing small issues
Browse files Browse the repository at this point in the history
- removed old console.log messages
- added en-US locale
- (still) defaults to 'englishMessages' until more locales are added to the app
- fixed dynamic font loading issue
  • Loading branch information
dnenov committed Feb 26, 2024
1 parent d0ccc16 commit 09450f1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/components/Learning/PageLearning.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export function LearningPage(){

// A method exposed to the backend used to set the interactive guides data coming from Dynamo
const receiveInteractiveGuidesDataFromDotNet = (jsonData) => {
console.log('Received interactive guides data from .NET:', jsonData);

try {
// jsonData is already an object, so no need to parse it
const data = jsonData;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Recent/PageRecent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export function RecentPage ({ setIsDisabled }){

// A method exposed to the backend used to set the graph data coming from Dynamo
const receiveGraphDataFromDotNet = (jsonData) => {
console.log('Received data from .NET:', jsonData);

try {
// jsonData is already an object, so no need to parse it
const data = jsonData;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Samples/PageSamples.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export function SamplesPage (){

// A method exposed to the backend used to set the samples data coming from Dynamo
const receiveSamplesDataFromDotNet = (jsonData) => {
console.log('Received data from .NET:', jsonData);

try {
// jsonData is already an object, so no need to parse it
const data = jsonData;
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@font-face {
font-family: 'ArtifaktElement';
src: url('http://localhost/embeddedFonts/ArtifaktElement-Regular.woff');
src: url('#fontStyle');
}

body {
Expand Down
2 changes: 2 additions & 0 deletions src/localization/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const getMessagesForLocale = (locale) => {
switch(locale) {
case 'en':
return englishMessages;
case 'en-US':
return englishMessages;
default:
return englishMessages;
}
Expand Down

0 comments on commit 09450f1

Please sign in to comment.