Skip to content

Commit

Permalink
Changed assets & renamed database
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdictator committed Feb 15, 2023
1 parent e7e00da commit 004d575
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as SQLite from "expo-sqlite";
const Stack = createNativeStackNavigator();

export default function App() {
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");

// init tables
db.transaction((tx) => {
Expand Down
Binary file modified assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/screens/AddHorseScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as FileSystem from "expo-file-system";

const APP_BACKGROUND_COLOR = "#0f0f0f";
const DIVIDER_COLOR = "rgba(255, 255, 255, 0.1)";
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");

const AddHorseScreen = ({ navigation }) => {
const [horseName, setHorseName] = useState("");
Expand Down
2 changes: 1 addition & 1 deletion src/screens/EditHorseScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as ImagePicker from "expo-image-picker";

const APP_BACKGROUND_COLOR = "#0f0f0f";
const DIVIDER_COLOR = "rgba(255, 255, 255, 0.1)";
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");

const EditHorseScreen = ({ navigation, route }) => {
const [horseName, setHorseName] = useState(route.params.horseName);
Expand Down
4 changes: 2 additions & 2 deletions src/screens/HorseCalendarScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const HorseCalendarScreen = ({ navigation, route }) => {
const isFocused = useIsFocused();

const updateMarkedDates = (currentCalendarDate) => {
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");
// get notes for this horse and this month of this year
db.transaction((tx) => {
tx.executeSql(
Expand Down Expand Up @@ -112,7 +112,7 @@ const HorseCalendarScreen = ({ navigation, route }) => {
};

const getHorseName = () => {
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");
// get horses
db.transaction((tx) => {
tx.executeSql(
Expand Down
2 changes: 1 addition & 1 deletion src/screens/HorseNoteScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as SQLite from "expo-sqlite";

const APP_BACKGROUND_COLOR = "#0f0f0f";
const DIVIDER_COLOR = "rgba(255, 255, 255, 0.1)";
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");

const HorseNoteScreen = ({ navigation, route }) => {
const horseId = route.params.horseId;
Expand Down
2 changes: 1 addition & 1 deletion src/screens/HorsesScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const HorsesScreen = ({ navigation }) => {

useEffect(() => {
if (isFocused) {
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");
// get horses
db.transaction((tx) => {
tx.executeSql(
Expand Down
4 changes: 2 additions & 2 deletions src/screens/NewNoteScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import HorseCheckbox from "../components/buttons/HorseCheckbox";

const APP_BACKGROUND_COLOR = "#0f0f0f";
const DIVIDER_COLOR = "rgba(255, 255, 255, 0.1)";
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");

const NewNoteScreen = ({ navigation, route }) => {
const noteDate = route.params.noteDate;
Expand Down Expand Up @@ -156,7 +156,7 @@ const NewNoteScreen = ({ navigation, route }) => {

useEffect(() => {
if (isFocused) {
const db = SQLite.openDatabase("thomas-horse-notes.db");
const db = SQLite.openDatabase("horse-notes-app.db");
// get horses
db.transaction((tx) => {
tx.executeSql(
Expand Down

0 comments on commit 004d575

Please sign in to comment.