expand user permissions
This commit is contained in:
@@ -58,9 +58,10 @@ function PlatformBadges({ platforms }: { platforms: GamePlatform[] }) {
|
||||
|
||||
interface Props {
|
||||
libraryId: string
|
||||
readOnly?: boolean
|
||||
}
|
||||
|
||||
export default function GamesView({ libraryId }: Props) {
|
||||
export default function GamesView({ libraryId, readOnly }: Props) {
|
||||
const [items, setItems] = useState<(Game | GameSeries)[]>([])
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [error, setError] = useState<string | null>(null)
|
||||
@@ -237,6 +238,7 @@ export default function GamesView({ libraryId }: Props) {
|
||||
<GameDetailModal
|
||||
game={selected}
|
||||
libraryId={libraryId}
|
||||
readOnly={readOnly}
|
||||
onClose={() => { setSelected(null); setSelectedGameIndex(null) }}
|
||||
onPrev={selectedGameIndex !== null && selectedGameIndex > 0
|
||||
? () => { const g = filteredGames[selectedGameIndex - 1]; setSelected(g); setSelectedGameIndex(selectedGameIndex - 1) }
|
||||
|
||||
Reference in New Issue
Block a user