Skip to content

Commit

Permalink
switch to @solidjs/router, closes egoist#4
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Oct 31, 2022
1 parent 813425d commit eef2887
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@preact/signals": "^1.1.2",
"@tauri-apps/api": "^1.1.0",
"codemirror": "^6.0.1",
"solid-app-router": "^0.4.2",
"@solidjs/router": "^0.5.0",
"solid-floating-ui": "^0.1.0",
"solid-js": "^1.6.0",
"tippy.js": "^6.3.7"
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "Dropcode",
"version": "0.0.0"
"version": "0.0.1"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Route, Routes } from "solid-app-router"
import { Route, Routes } from "@solidjs/router"
import { onMount, Show } from "solid-js"
import { Home } from "../screens/Home"
import { Snippets } from "../screens/Snippets"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useNavigate } from "solid-app-router"
import { useNavigate } from "@solidjs/router"
import {
type Accessor,
createEffect,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/open-folder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dialog } from "@tauri-apps/api"
import { useNavigate } from "solid-app-router"
import { useNavigate } from "@solidjs/router"

export const useOpenFolderDialog = () => {
const goto = useNavigate()
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "uno.css"
import "./css/tailwind.css"
import "./css/main.css"
import { render } from "solid-js/web"
import { Router } from "solid-app-router"
import { Router } from "@solidjs/router"

import { App } from "./components/App"

Expand Down
2 changes: 1 addition & 1 deletion src/screens/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useNavigate } from "solid-app-router"
import { useNavigate } from "@solidjs/router"
import { onMount } from "solid-js"
import { useOpenFolderDialog } from "../lib/open-folder"
import { state } from "../store"
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Snippets.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link, useNavigate, useSearchParams } from "solid-app-router"
import { Link, useNavigate, useSearchParams } from "@solidjs/router"
import { createEffect, createMemo, createSignal, For, on, Show } from "solid-js"
import { confirm } from "@tauri-apps/api/dialog"
import { Editor } from "../components/Editor"
Expand Down

0 comments on commit eef2887

Please sign in to comment.