mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 22:26:57 +01:00
Forgot to update these
This commit is contained in:
parent
7e5c3f1bac
commit
b58a838af0
2 changed files with 3 additions and 3 deletions
|
@ -18,8 +18,8 @@ function MediaModal({
|
||||||
const carouselRef = useRef(null);
|
const carouselRef = useRef(null);
|
||||||
// NOTE: Optional path segment doesn't work yet
|
// NOTE: Optional path segment doesn't work yet
|
||||||
// https://github.com/remix-run/react-router/issues/10039
|
// https://github.com/remix-run/react-router/issues/10039
|
||||||
// const isStatusLocation = useMatch('/s/:instance?/:id');
|
// const isStatusLocation = useMatch('/:instance?/s/:id');
|
||||||
const isStatusLocation = useMatch('/s/:instance/:id') || useMatch('/s/:id');
|
const isStatusLocation = useMatch('/:instance/s/:id') || useMatch('/s/:id');
|
||||||
|
|
||||||
const [currentIndex, setCurrentIndex] = useState(index);
|
const [currentIndex, setCurrentIndex] = useState(index);
|
||||||
const carouselFocusItem = useRef(null);
|
const carouselFocusItem = useRef(null);
|
||||||
|
|
|
@ -9,7 +9,7 @@ import useTitle from '../utils/useTitle';
|
||||||
const LIMIT = 20;
|
const LIMIT = 20;
|
||||||
|
|
||||||
function Public() {
|
function Public() {
|
||||||
const isLocal = !!useMatch('/p/l/:instance');
|
const isLocal = !!useMatch('/:instance/p/l');
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
const { masto, instance } = api({ instance: params.instance });
|
const { masto, instance } = api({ instance: params.instance });
|
||||||
const title = `${instance} (${isLocal ? 'local' : 'federated'})`;
|
const title = `${instance} (${isLocal ? 'local' : 'federated'})`;
|
||||||
|
|
Loading…
Reference in a new issue