Skip to content

Commit 1232b02

Browse files
committed
updating some shit and w/e
1 parent 330e074 commit 1232b02

14 files changed

+11
-104
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dist
66
build
77
*ignore
88
extern
9-
9+
old
1010

1111
### VisualStudioCode template
1212
.vscode/*

.prettierignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
dist
33
build
44
extern
5-
5+
old
66

77
### VisualStudioCode template
88
.vscode/*

src/common/index.ts

-4
This file was deleted.

src/components/clock.tsx

-11
This file was deleted.

src/components/test.ts

-5
This file was deleted.

src/functions/StoreScungus.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState } from "react";
22

3-
function storeScungusLocally(key: string, initialValue: Number) {
3+
function storeScungusLocally(key: string, initialValue: number) {
44
// State to store value
55
// pass initial state function to useState so logic is only executed once
66
const [storedValue, setStoredValue] = useState(() => {
@@ -19,7 +19,7 @@ function storeScungusLocally(key: string, initialValue: Number) {
1919

2020
// Return a wrapped version of useState's setter function that ...
2121
// ... persists the new value to localStorage.
22-
const setValue = (value: Number) => {
22+
const setValue = (value: number) => {
2323
try {
2424
// allow value to be a function so we have the same api as useState
2525
const valueToStore = value instanceof Function ? value(storedValue) : value;
@@ -47,7 +47,7 @@ function loadScungusLocally(key: string) {
4747
}
4848

4949

50-
function storeScungusSession(key: string, value: Number) {
50+
function storeScungusSession(key: string, value: number) {
5151
// State to store value
5252
// pass initial state function to useState so logic is only executed once
5353
const [storedValue, setStoredValue] = useState(() => {
@@ -66,7 +66,7 @@ function storeScungusSession(key: string, value: Number) {
6666

6767
// Return a wrapped version of useState's setter function that ...
6868
// ... persists the new value to localStorage.
69-
const setValue = (value: Number) => {
69+
const setValue = (value: number) => {
7070
try {
7171
// allow value to be a function so we have the same api as useState
7272
const valueToStore = value instanceof Function ? value(storedValue) : value;
@@ -80,7 +80,7 @@ function storeScungusSession(key: string, value: Number) {
8080
}
8181
};
8282
return [storedValue, setValue]
83-
};
83+
}
8484

8585
export { storeScungusLocally, storeScungusSession };
8686

src/hooks/ClickScungus.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@mui/material';
1+
import { Button } from 'semantic-ui-react';
22
import { storeScungusSession } from '../functions/StoreScungus';
33

44
const ClickScungus = () => {
@@ -25,7 +25,6 @@ const ClickScungus = () => {
2525

2626
<Button
2727
variant='contained'
28-
color='secondary'
2928
size='large'
3029
type='submit'
3130
onClick={pressButton}

src/hooks/LoadScungus.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@mui/material';
1+
import { Button } from 'semantic-ui-react';
22

33
const LoadScungus = () => {
44
const load = () => {
@@ -11,7 +11,6 @@ const LoadScungus = () => {
1111
<div>
1212
<Button
1313
variant='contained'
14-
color='secondary'
1514
type='submit'
1615
onClick={load}
1716
aria-label='scungus:) load'

src/hooks/ResetScungus.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@mui/material';
1+
import { Button } from 'semantic-ui-react';
22

33
const ResetScungus = () => {
44
const reset = () => {
@@ -13,7 +13,6 @@ const ResetScungus = () => {
1313
<div>
1414
<Button
1515
variant='contained'
16-
color='secondary'
1716
type='submit'
1817
onClick={reset}
1918
aria-label='scungus:) reset'

src/hooks/SaveScungus.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@mui/material';
1+
import { Button } from 'semantic-ui-react';
22
import { storeScungusLocally } from '../functions/StoreScungus';
33

44
const SaveScungus = () => {
@@ -16,7 +16,6 @@ const SaveScungus = () => {
1616
<div>
1717
<Button
1818
variant='contained'
19-
color='secondary'
2019
type='submit'
2120
onClick={save}
2221
aria-label='scungus:) save'

src/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { createRoot } from 'react-dom/client';
33
import App from './components/App';
44

55
const container = document.querySelector('#root');
6-
// eslint-disable-next-line functional/no-conditional-statements
76
if (container) {
87
const root = createRoot(container);
98
root.render(<App />);

src/old/Button.tsx

-24
This file was deleted.

src/styles/Dawnie.tsx

-31
This file was deleted.

src/themes/Colors.tsx

-13
This file was deleted.

0 commit comments

Comments
 (0)