mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
change subscriptions route
This commit is contained in:
+4
-1
@@ -162,9 +162,12 @@ export default function App() {
|
|||||||
<Route path={`/profile/c/:index`} element={<Pending setBodyStyle={setBodyStyle} /> }>
|
<Route path={`/profile/c/:index`} element={<Pending setBodyStyle={setBodyStyle} /> }>
|
||||||
<Route path='settings' element={<Pending />} />
|
<Route path='settings' element={<Pending />} />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path={`/profile/p/subscriptions`} element={<Subscriptions setBodyStyle={setBodyStyle} /> }>
|
<Route path={`/p/subscriptions`} element={<Subscriptions setBodyStyle={setBodyStyle} /> }>
|
||||||
<Route path='settings' element={<Subscriptions />} />
|
<Route path='settings' element={<Subscriptions />} />
|
||||||
</Route>
|
</Route>
|
||||||
|
<Route path={`p/subscriptions/catalog`} element={<SubscriptionsCatalog setBodyStyle={setBodyStyle} /> }>
|
||||||
|
<Route path='settings' element={<SubscriptionsCatalog />} />
|
||||||
|
</Route>
|
||||||
<Route path='*' element={<NotFound setBodyStyle={setBodyStyle} />} />
|
<Route path='*' element={<NotFound setBodyStyle={setBodyStyle} />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
<Toast />
|
<Toast />
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ const Board = () => {
|
|||||||
const selected = event.target.value;
|
const selected = event.target.value;
|
||||||
|
|
||||||
if (selected === 'subscriptions') {
|
if (selected === 'subscriptions') {
|
||||||
navigate(`/profile/p/subscriptions`);
|
navigate(`/p/subscriptions`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,7 +363,7 @@ const Board = () => {
|
|||||||
<>
|
<>
|
||||||
<span className="boardList">
|
<span className="boardList">
|
||||||
[
|
[
|
||||||
<Link to={`/profile/p/subscriptions`}>Subscriptions</Link>
|
<Link to={`/p/subscriptions`}>Subscriptions</Link>
|
||||||
] [
|
] [
|
||||||
{defaultSubplebbits.map((subplebbit, index) => (
|
{defaultSubplebbits.map((subplebbit, index) => (
|
||||||
<span className="boardList" key={`span-${subplebbit.address}`}>
|
<span className="boardList" key={`span-${subplebbit.address}`}>
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ const Catalog = () => {
|
|||||||
const selected = event.target.value;
|
const selected = event.target.value;
|
||||||
|
|
||||||
if (selected === 'subscriptions') {
|
if (selected === 'subscriptions') {
|
||||||
navigate(`/profile/p/subscriptions`);
|
navigate(`/p/subscriptions`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -272,7 +272,7 @@ const Catalog = () => {
|
|||||||
<>
|
<>
|
||||||
<span className="boardList">
|
<span className="boardList">
|
||||||
[
|
[
|
||||||
<Link to={`/profile/p/subscriptions`}>Subscriptions</Link>
|
<Link to={`/p/subscriptions`}>Subscriptions</Link>
|
||||||
] [
|
] [
|
||||||
{defaultSubplebbits.map((subplebbit, index) => (
|
{defaultSubplebbits.map((subplebbit, index) => (
|
||||||
<span className="boardList" key={`span-${subplebbit.address}`}>
|
<span className="boardList" key={`span-${subplebbit.address}`}>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ const Home = () => {
|
|||||||
<h3 style={{textDecoration: 'underline', display: 'inline'}}>
|
<h3 style={{textDecoration: 'underline', display: 'inline'}}>
|
||||||
You have subscribed to {account?.subscriptions?.length} board{account?.subscriptions?.length > 1 ? "s" : null}
|
You have subscribed to {account?.subscriptions?.length} board{account?.subscriptions?.length > 1 ? "s" : null}
|
||||||
</h3>
|
</h3>
|
||||||
<Link to="/profile/p/subscriptions" id="view-all">[view all]</Link>
|
<Link to="/p/subscriptions" id="view-all">[view all]</Link>
|
||||||
<br />
|
<br />
|
||||||
{account?.subscriptions?.map((subscription, index) => (
|
{account?.subscriptions?.map((subscription, index) => (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ const Subscriptions = () => {
|
|||||||
<>
|
<>
|
||||||
<span className="boardList">
|
<span className="boardList">
|
||||||
[
|
[
|
||||||
<Link to={`/profile/p/subscriptions`}>Subscriptions</Link>
|
<Link to={`/p/subscriptions`}>Subscriptions</Link>
|
||||||
] [
|
] [
|
||||||
{defaultSubplebbits.map((subplebbit, index) => (
|
{defaultSubplebbits.map((subplebbit, index) => (
|
||||||
<span className="boardList" key={`span-${subplebbit.address}`}>
|
<span className="boardList" key={`span-${subplebbit.address}`}>
|
||||||
@@ -196,7 +196,7 @@ const Subscriptions = () => {
|
|||||||
}>Create Board</button>
|
}>Create Board</button>
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
<Link to={`/profile/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
<Link to={`/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||||
@@ -221,7 +221,7 @@ const Subscriptions = () => {
|
|||||||
}>Create Board</button>
|
}>Create Board</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="page-jump">
|
<div className="page-jump">
|
||||||
<Link to={`/profile/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
<Link to={`/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||||
|
|
||||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||||
)}>Home</Link>
|
)}>Home</Link>
|
||||||
@@ -263,6 +263,16 @@ const Subscriptions = () => {
|
|||||||
<option value="Photon">Photon</option>
|
<option value="Photon">Photon</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
<div id="catalog-button-desktop">
|
||||||
|
[
|
||||||
|
<Link to={`/p/subscriptions/catalog`}>Catalog</Link>
|
||||||
|
]
|
||||||
|
</div>
|
||||||
|
<div id="catalog-button-mobile">
|
||||||
|
<span className="btn-wrap">
|
||||||
|
<Link to={`/p/subscriptions/catalog`}>Catalog</Link>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</TopBar>
|
</TopBar>
|
||||||
<Tooltip id="tooltip" className="tooltip" />
|
<Tooltip id="tooltip" className="tooltip" />
|
||||||
<BoardForm selectedStyle={selectedStyle}>
|
<BoardForm selectedStyle={selectedStyle}>
|
||||||
@@ -1033,7 +1043,7 @@ const Subscriptions = () => {
|
|||||||
}>Create Board</button>
|
}>Create Board</button>
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
<Link to={`/profile/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
<Link to={`/p/subscriptions/settings`} onClick={() => setIsSettingsOpen(true)}>Settings</Link>
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
<Link to="/" onClick={() => handleStyleChange({target: {value: "Yotsuba"}}
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ const Thread = () => {
|
|||||||
const selected = event.target.value;
|
const selected = event.target.value;
|
||||||
|
|
||||||
if (selected === 'subscriptions') {
|
if (selected === 'subscriptions') {
|
||||||
navigate(`/profile/p/subscriptions`);
|
navigate(`/p/subscriptions`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,7 +288,7 @@ const Thread = () => {
|
|||||||
<>
|
<>
|
||||||
<span className="boardList">
|
<span className="boardList">
|
||||||
[
|
[
|
||||||
<Link to={`/profile/p/subscriptions`}>Subscriptions</Link>
|
<Link to={`/p/subscriptions`}>Subscriptions</Link>
|
||||||
] [
|
] [
|
||||||
{defaultSubplebbits.map((subplebbit, index) => (
|
{defaultSubplebbits.map((subplebbit, index) => (
|
||||||
<span className="boardList" key={`span-${subplebbit.address}`}>
|
<span className="boardList" key={`span-${subplebbit.address}`}>
|
||||||
|
|||||||
Reference in New Issue
Block a user