mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 09:09:10 +00:00
chore: update codestyle due to prettier/rule updates
This commit is contained in:
parent
f632bfa6e5
commit
10e095656f
16 changed files with 298 additions and 292 deletions
|
@ -47,9 +47,8 @@ export const useSessionContext = () => React.useContext(SessionContext);
|
|||
|
||||
export const SessionContextProvider = (props: { children: React.ReactNode }) => {
|
||||
const { fetch } = useApiContext();
|
||||
const [sessionID, setSessionID] = React.useState<SessionContextT['sessionID']>(
|
||||
undefined
|
||||
);
|
||||
const [sessionID, setSessionID] =
|
||||
React.useState<SessionContextT['sessionID']>(undefined);
|
||||
const [sessionState, setSessionState] = React.useState<SessionState>(
|
||||
SessionState.NoAuth
|
||||
);
|
||||
|
|
|
@ -41,9 +41,10 @@ const Picker = (props: PickerProps) => {
|
|||
fetchPickerData();
|
||||
}, [props.serverID, authedFetch, pushRecentGuild]);
|
||||
|
||||
React.useCallback((serverID) => pushRecentGuild(serverID), [pushRecentGuild])(
|
||||
props.serverID
|
||||
);
|
||||
React.useCallback(
|
||||
(serverID) => pushRecentGuild(serverID),
|
||||
[pushRecentGuild]
|
||||
)(props.serverID);
|
||||
|
||||
if (!isAuthenticated) {
|
||||
return <Redirect to={`/auth/login?r=${props.serverID}`} replace />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue